dbguy2626
asked on
Add String Value To Run Folder In Registry
Guys, I know this is easy but I need some help. Just a simple script that would add a string Value to the Registrys Run Key
HKEY_LOCAL_MACHINE\SOFTWAR E\Microsof t\Windows\ CurrentVer sion\Run\
Please help
HKEY_LOCAL_MACHINE\SOFTWAR
Please help
ASKER
I was hoping to do it in VB and not import.. Here is what I have, any thoughts why it is not working
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "C:\test.exe", "REG_SZ"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://support.microsoft.com/kb/310516
http://www.robvanderwoude.com/regedit.html