I am trying to produce my first VBScript.
I would like to add a reg enty using the wshShell.RegWrite object.
The problem lies in that the value of the reg key i want to add, has a " in it, and this upsets the whole process.
This is the troublesome line: -
wshShell.RegWrite "HKCR\xlr_auto_file\shell\edit\command\", ""C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE" /e", "REG_SZ".
Obviously the double speech marks can't be used but i'm not sure what to do.
I have tried using char(34) but not sure on the correct way to do it.
Any help would be greatly appreciated.
JK
I would like to add a reg enty using the wshShell.RegWrite object.
The problem lies in that the value of the reg key i want to add, has a " in it, and this upsets the whole process.
This is the troublesome line: -
wshShell.RegWrite "HKCR\xlr_auto_file\shell\edit\command\", ""C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE" /e", "REG_SZ".
Obviously the double speech marks can't be used but i'm not sure what to do.
I have tried using char(34) but not sure on the correct way to do it.
Any help would be greatly appreciated.
JK