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