Author Topic: CREATEREGSTRING problem.  (Read 146 times)

Robert

  • Sr. Member
  • ****
  • Posts: 449
    • View Profile
CREATEREGSTRING problem.
« on: June 15, 2020, 11:45:22 AM »
Please verify.

BCX Help file Registry examples are not working. No registry string created. Windows 10.

Code: [Select]

 CONST HKLM = HKEY_LOCAL_MACHINE
 
 PRINT "A zero value means that the key and value name exist."
 PRINT "A value greater than zero means that the key doesn't exist."
 PRINT "A value less than zero means that the value name doesn't exist."
 PRINT
 PRINT "Status Key: Software\Chevy Value Name: Engine"; RegExist(HKLM,"Software\Chevy", "Engine")
 PRINT
 PRINT "Creating key."
 
 CREATEREGINT(HKLM, "Software\Chevy", "Engine", 350)
 
 PRINT "Status Key: Software\Chevy Value Name: Engine"; RegExist(HKLM,"Software\Chevy", "Engine")
 PRINT "Value for Key: Software\Chevy Value Name: Engine"; REGINT (HKLM,"Software\Chevy", "Engine")
 PRINT
 
 PRINT "Changing key. "
 
 CREATEREGINT(HKLM, "Software\Chevy", "Engine", 283)
 
 PRINT "Status Key: Software\Chevy Value Name: Engine"; RegExist(HKLM,"Software\Chevy", "Engine")
 PRINT "Value for Key: Software\Chevy Value Name: Engine"; REGINT (HKLM,"Software\Chevy", "Engine")
 PRINT
 PRINT "Deleting key."
 
 DELETEREGKEY(HKLM, "Software\Chevy")
 
 PRINT "Status Key: Software\Chevy Value Name: Engine"; RegExist(HKLM,"Software\Chevy", "Engine")
 

Robert

  • Sr. Member
  • ****
  • Posts: 449
    • View Profile
Re: CREATEREGSTRING problem.
« Reply #1 on: June 15, 2020, 11:47:55 AM »
Please verify.

BCX Help file Registry examples are not working. No registry string created. Windows 10.

Code: [Select]

 CONST HKLM = HKEY_LOCAL_MACHINE
 
 PRINT "A zero value means that the key and value name exist."
 PRINT "A value greater than zero means that the key doesn't exist."
 PRINT "A value less than zero means that the value name doesn't exist."
 PRINT
 PRINT "Status Key: Software\Chevy Value Name: Engine"; RegExist(HKLM,"Software\Chevy", "Engine")
 PRINT
 PRINT "Creating key."
 
 CREATEREGINT(HKLM, "Software\Chevy", "Engine", 350)
 
 PRINT "Status Key: Software\Chevy Value Name: Engine"; RegExist(HKLM,"Software\Chevy", "Engine")
 PRINT "Value for Key: Software\Chevy Value Name: Engine"; REGINT (HKLM,"Software\Chevy", "Engine")
 PRINT
 
 PRINT "Changing key. "
 
 CREATEREGINT(HKLM, "Software\Chevy", "Engine", 283)
 
 PRINT "Status Key: Software\Chevy Value Name: Engine"; RegExist(HKLM,"Software\Chevy", "Engine")
 PRINT "Value for Key: Software\Chevy Value Name: Engine"; REGINT (HKLM,"Software\Chevy", "Engine")
 PRINT
 PRINT "Deleting key."
 
 DELETEREGKEY(HKLM, "Software\Chevy")
 
 PRINT "Status Key: Software\Chevy Value Name: Engine"; RegExist(HKLM,"Software\Chevy", "Engine")
 

Never mind. Program must be run with Administrator rights.

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 538
    • View Profile
Re: CREATEREGSTRING problem.
« Reply #2 on: June 15, 2020, 12:09:39 PM »

Never mind. Program must be run with Administrator rights.

Glad you sorted it out.

I was going to recommend trying it with a Ford instead of a Chevy  :-)