How do I insert double-quotes in a string if I am using VBScript in the Windows Scripting Host environment?
Suppose I want to execute this line:
notepad.exe "C:\Some Folder\foo.txt"
How do I write this line? I tried it both ways but it gives me an expected identifier error.
WshShell.Run("%windir%\notepad.exe \"C:\Some Folder\foo.txt\"")
WshShell.Run("%windir%\notepad.exe ""C:\Some Folder\foo.txt""")