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

Need to call an exe and pass parameters

Status
Not open for further replies.

lytus

MIS
Jun 17, 2004
48
US
Hi All,
I am trying to call a command line exe file and pass parameters to it. I assume a batch file would be the best way to do this, but how do I pass parameters from the vbscript to a batch file?
 
You can call the exe from the vbscript passing parameters to it. look at the WshShell object and it's .Run and .Exec methods.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top