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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.