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

How to call an exe with parameters???

Status
Not open for further replies.

pankajv

Programmer
Jan 30, 2002
178
IN
I have to call an exe with parameters in the VBScript,
How do i do that???
 
dim wsh
Set wsh = Wscript.CreateObject("Wscript.Shell")
wsh.run "nameofexe.exe param1 param2",,true

The true waits for the exit to run before returning to the vbscript. Regards
Steve Friday
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top