Hello,
I've been conerting a large number of Windows .reg files to VBScript to automate them. I have two that continue to give me a problem and would appreciate any help:
1) I want to enter the following string value in a registry key: "rundll32.exe shell32.dll,OpenAs_RunDLL "%1"". I believe either the inner set of quotes or the % are reserved and must be worked around. I saw some similiar posts involving the "replace" function but couldn't get it
2) I want to enter the binary value "90 32 00 80" in a registry key, but "shell.RegWrite "HKCU\Control Panel\Desktop\SmoothScroll", 90320080, "REG_BINARY" doesn't work. The .reg file actually lists it as a hex value: [HKEY_CURRENT_USER\Control Panel\Desktop]
"UserPreferencesMask"=hex:90,32,00,80
Thank you for your assistance!
Heath
I've been conerting a large number of Windows .reg files to VBScript to automate them. I have two that continue to give me a problem and would appreciate any help:
1) I want to enter the following string value in a registry key: "rundll32.exe shell32.dll,OpenAs_RunDLL "%1"". I believe either the inner set of quotes or the % are reserved and must be worked around. I saw some similiar posts involving the "replace" function but couldn't get it
2) I want to enter the binary value "90 32 00 80" in a registry key, but "shell.RegWrite "HKCU\Control Panel\Desktop\SmoothScroll", 90320080, "REG_BINARY" doesn't work. The .reg file actually lists it as a hex value: [HKEY_CURRENT_USER\Control Panel\Desktop]
"UserPreferencesMask"=hex:90,32,00,80
Thank you for your assistance!
Heath