Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


escape characters for a wshshell.exec command

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> escape characters for a wshshell.exec command
  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 >>
 escape characters for a wshshell.exec command - 10/4/2004 4:40:14 AM   
  thebugler

 

Posts: 4
Score: 0
Joined: 9/30/2004
From:
Status: offline
I am trying to run this command in wshshell.exec:
for /f "Tokens=2*" %u in ('reg query "\\strComputer\HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer" /v Version ^| findstr /I /L /C:"REG_SZ"') do (@echo %v)

This exact code will run on command line by iteself, but I can't format it properly to run with wshshell.exec.

I need help escaping the quotes (single and double) correctly. Please help.
 
 
Post #: 1
 
 
 
  

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 >> escape characters for a wshshell.exec command 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