obiwantuxedo
MIS
How can I write the following value to the registry:
cmd.exe /k \"cd %1\"
I am trying to write this to HKEY_CLASSES_ROOT\Directory\shell\Command\command\ but the bit in quotations is giving me problems. If I try
WshShell.RegWrite "HKEY_CLASSES_ROOT\Directory\shell\Command\command\", "cmd.exe /k \"cd %1\"" , "REG_SZ" I get an error message because of the two sets of double quotations. Using singles writes the value without error, but does not work.
cmd.exe /k \"cd %1\"
I am trying to write this to HKEY_CLASSES_ROOT\Directory\shell\Command\command\ but the bit in quotations is giving me problems. If I try
WshShell.RegWrite "HKEY_CLASSES_ROOT\Directory\shell\Command\command\", "cmd.exe /k \"cd %1\"" , "REG_SZ" I get an error message because of the two sets of double quotations. Using singles writes the value without error, but does not work.