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

how to launch an EXE from VB?

Status
Not open for further replies.

thomascd

Programmer
Joined
Mar 20, 2002
Messages
29
Location
GB
Is it possible to launch an exe from VB using WSCRIPT.SHELL object ?
The problem with using the shell function is that the code doesn't wait for the exe to finish.



 
Maybe the ShellExecute(Ex) API can do that for you (no experience with that one, but I see it coming around a lot in this forum). If not using CreateProcess and WaitForSingleObject can do that for you for sure.
Greetings,
Rick
 
Yes. The Run method has a WaitOnReturn parameter.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top