I am trying to make a Win 32 application(DOS only) that will launch a program and wait until it terminates in Visual C++ 5. It also has another thread that updates a file every minute(launched with _beginthread). The problem I run into is that I do not know how to launch a program and wait for it to terminate. Could someone please help me with this?

Thanks.