Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Windows .reg files to VBScript

Status
Not open for further replies.

a073235

MIS
Jun 30, 2001
124
US
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top