| | |
Restoring a Registry Setting thru VBS
![]() |
•
•
Join Date: Mar 2004
Posts: 54
Reputation:
Solved Threads: 0
anyone know how to get around this:
WshShell.RegWrite "HKEY_CLASSES_ROOT\exefile\shell\open\command\", ""%1"%
*"
I cant seem to include more than 2 " at the end there if i just do "%1 %
*" then it will succesfully write to the registry but it needs the extra 2 " in there & i dont know how to get around that, anyone know???
WshShell.RegWrite "HKEY_CLASSES_ROOT\exefile\shell\open\command\", ""%1"%
*"
I cant seem to include more than 2 " at the end there if i just do "%1 %
*" then it will succesfully write to the registry but it needs the extra 2 " in there & i dont know how to get around that, anyone know???
•
•
•
•
Originally Posted by Khiladi420
anyone know how to get around this:
WshShell.RegWrite "HKEY_CLASSES_ROOT\exefile\shell\open\command\", ""%1"%
*"
I cant seem to include more than 2 " at the end there if i just do "%1 %
*" then it will succesfully write to the registry but it needs the extra 2 " in there & i dont know how to get around that, anyone know???
WshShell.RegWrite "HKEY_CLASSES_ROOT\exefile\shell\open\command\", chr(34) & "%1" & chr(34) & "%*"
the chr(asc) function returns the character represented by the ascii code passed to it. 34 happens to be the ascii double quote character. So, You terminate your string, use concantenation ( the & ) to append the character code 34 (double quotes) to your string.
![]() |
Similar Threads
- Popups and problem loading desktop (Viruses, Spyware and other Nasties)
- Hidden program installs .dlls with randomly generated names in random "notify" reg. (Viruses, Spyware and other Nasties)
- need help removing callinghomebiz (Viruses, Spyware and other Nasties)
- urllogic, downloader-va??? (Viruses, Spyware and other Nasties)
- help with hjt and vx2/urllogic (Viruses, Spyware and other Nasties)
- HijackThis shows 01 entries - can't remove (Viruses, Spyware and other Nasties)
- trojans wont let me connect to internet (Viruses, Spyware and other Nasties)
- 213.159.117.130 trojan.. help!! (Viruses, Spyware and other Nasties)
Other Threads in the Windows NT / 2000 / XP Forum
- Previous Thread: Windows XP will not start
- Next Thread: Need help :(
| Thread Tools | Search this Thread |
.net 3.5 3daccelertion 2007 2010 a.exe alaris apache application appstore arm auto automatically black blue book cellphones collaboration computer computerfreezes crash cursor deployment desktop desktops dns domain dotnetnuke drive eartlink error errors explorer features folder fontmanagers format framework gadgets intel internet interoperability killprocess laptop latitude linux load login mac microsoft minimalizes mobile monitor motionle1600 netbooks novell nvidia open operatingsystems osx palm partition patch port printer product proxy rds remotedesktop remotedesktopconnection repair replacingraiddrive retrieve screen simplifiedchinese sp1 unreadable update usb verizon videodrivers videogames virtual virus vista visual vulnerability wab webos weecam win win32/heur window windows windows7 windowsxp windowsxpnotstartingup. worm xp xpde






