01-23-2003, 09:49 AM
I want to manipulate the registry in one of my macros, but I can't get rget to work. Here's my test macro:
run "notepad.exe" "" "" "" 1 "Notepad"
int port = 5
key "value before = "
outp port
key Y
rget port "TCPIPDataPort" "SOFTWARE\Symantec\pcANYWHERE\CurrentVersion\System" "HKEY_LOCAL_MACHINE")
key "value after = "
outp port
When I compile I get "Error in test: expected numeric expression." on "HKEY_LOCAL_MACHINE
It works using the default hive,
rget(port "Identity Ordinal" "Identities")
but not for any other hives. Have I misunderstood something? Is there a numeric value for HKEY_LOCAL_MACHINE, and if so what is it?
run "notepad.exe" "" "" "" 1 "Notepad"
int port = 5
key "value before = "
outp port
key Y
rget port "TCPIPDataPort" "SOFTWARE\Symantec\pcANYWHERE\CurrentVersion\System" "HKEY_LOCAL_MACHINE")
key "value after = "
outp port
When I compile I get "Error in test: expected numeric expression." on "HKEY_LOCAL_MACHINE
It works using the default hive,
rget(port "Identity Ordinal" "Identities")
but not for any other hives. Have I misunderstood something? Is there a numeric value for HKEY_LOCAL_MACHINE, and if so what is it?