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

Launching two programs from one exe 1

Status
Not open for further replies.

mg911

Technical User
Jul 18, 2001
59
US
How would I go about launching two programs in succession?

For example if i have two programs X and Y,

I want to launch program X and wait for it to complete and then launch program Y.

Thanks
 
1. By a .bat file containing:
- start /w x
- start y
2. By a third program, containing:
- A CreateProcess or spawn call, starting x.
- If CreateProcess was used, wait for the end of x by calling WaitForSingleObject (spwan has arguments to wait for the end of the program built in)
- A createProcess or spawn call, starting y.
3. In the source of x, start y just before the program x ends.

Marcel
 
Thanks a lot - this should help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top