Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using " " in a command line 1

Status
Not open for further replies.

smithy1981

IS-IT--Management
Sep 16, 2005
12
GB
Hi, i need to send a line to command prompt. I can do this fine but the line contains " " as part of the command. Obviously you cannot just type this in the script. Is there a shortcut \ special key that will allow this to be done.

WshShell.Run("cmd /c ....."..."....")

Hope this makes sense

Thanks
 
strX = "c:\program files\myexe.exe"
WshShell.Run Chr(34) & strX & Chr(34) & " r b c", 1, True
 
or """, i think, i like the chr(34) as i get confused easily ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top