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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBS formatting question "cmdline = "

Status
Not open for further replies.

MelvinM

MIS
Jun 18, 2003
20
US
I can get foo.exe to launch, but I need to add these two words on the end to have the program run corectly.

cmdline = """c:\program files\myprogram\foo.exe""" -rite -proxy.txt
WScript.echo cmdline
objWsh.run cmdline,1,False

Will not run unless I remove "-rite -proxy.txt" I need to have them included for the program to work.

It works like this from the run line:
"c:\program files\myprogram\foo.exe" -rite -proxy.txt

Thanks!

How can I incorporate "-rite -proxy.txt" ?

 
>cmdline = """c:\program files\myprogram\foo.exe""" -rite -proxy.txt
[tt]cmdline = """c:\program files\myprogram\foo.exe""[COLOR=red yellow] [/color]-rite -proxy.txt[COLOR=red yellow]"[/color]
[/tt]
 
Another way:
cmdline = Chr(34) & "c:\program files\myprogram\foo.exe" & Chr(34) & " -rite -proxy.txt"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I just tried tsuji suggestion - It worked! "Such a simple solution, but it was killing me..."

I will try PHV method later on today.

Thanks so much!!! You realy helped me out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top