Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


New to VBS - and with a problem to solve

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,60187
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
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!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 New to VBS - and with a problem to solve - 5/14/2008 3:07:18 AM   
  roystonww

 

Posts: 1
Score: 0
Joined: 5/14/2008
Status: offline
Hello All,

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"

Any ideas would be most appreciated.

Regards,

Roy

 
 
Post #: 1
 
 RE: New to VBS - and with a problem to solve - 5/14/2008 3:55:58 AM   
  ebgreen


Posts: 4972
Score: 31
Joined: 7/12/2005
Status: offline
Search the forum for double quotes. It has been discussed ad nauseum.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to roystonww)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> New to VBS - and with a problem to solve Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts