| | |
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 64bit 2007 2010 a.exe activedirectory address android appstore black blue bsod bulletin canonical cellphones chinese codeplex combofix computer crash cursor deployment deployments desktop desktops dns dotnetnuke drive eartlink error errors explorer fax features folder fontmanagers format framework freeze hardware home interoperability laptop laptops lcd linux load login mac markshuttleworth memory microsoft monitor motionle1600 netbooks novell nvidia opensource operatingsystems options osinstallationproblem osx palm printer product program proxy reformat remotedesktop replacingraiddrive retail retrieve screen security sharepoint simplifiedchinese sitetositevpn slowperformance sp3 studios technology ubuntu update upgrade videodrivers videogames virus vista visual vpn vulnerability wab win win32/heur windows windows7 windowsxp windowsxpnotstartingup. xp xpde






