All Forums >> [Scripting] >> WSH & Client Side VBScript >> New to VBS - and with a problem to solve Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Is there a list of allowed forcing characters for use in VBS?
I have some code which calls a shell command that requires options of the command to be encompassed in double quotes, but the Shell.run statement is in quotes too, (i think you know where I'm going with this)...
The line of code i'm having trouble with is is below...
myShell.run "C:\xmlstarlet-1.0.1-win32\xmlstarlet-1.0.1\xml ed -u "///rpage[@page='1']/@form_name" -v InvalidForm C:\xmlstarlet-1.0.1-win32\xmlstarlet-1.0.1\vmc.xml > C:\xmlstarlet-1.0.1-win32\xmlstarlet-1.0.1\vmc1.xml"
The command works fine manually within a command prompt, but not in a script.
When I try to run the code I get Syntax Error on character 69 which is the second / in the group of "///...
I imagine I need some form of forcing character on the double quotes around this part of the command "///rpage[@page='1']/@form_name"