Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If a registry key exists, then do something
#1
"If a registry key exists, then do something"

"if a registry key value exists, then do something"

"if a registry key has a certain value, then do something":

how can I express each of these expressions in QM language?
#2
Macro Macro2757
Code:
Copy      Help
RegKey k
if(k.Open("Software\Microsoft" HKEY_CURRENT_USER KEY_READ))
,k.Close
,out "key exists"
else out "no key"

if(rget(_s "valueName" "\my key"))
,out F"value exists: {_s}"
else out "no value"
#3
Thank you vary much!


Forum Jump:


Users browsing this thread: 1 Guest(s)