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 can i run an *.exe from a VB Sript?

Status
Not open for further replies.

229257

Programmer
Apr 23, 2002
54
GB
This is a login script.

I think it is quite easy, but have memory lapse

Cheers
 


Dim wsh
Set wsh = WScript.CreateObject("Wscript.Shell")
wsh.run "\\myserver\myshare\myexe.exe",,True


where the True means wait on completion then continue procesing the script, this is not 100% successfull as if the program starts a new thread and terminates the first one the wsh.run will presume it has completed and will carry on with the script processing.

Hope it helps
Regards
Steve Friday
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top