This question has occured many a time concerning shelling a DOS program from VB and waiting for it to end before VB continues. I've tried to follow the correct way of using CreateProcess and WaitForSingleObject but am having trouble getting the CreateProcess to lauch the DOS job. As the firm I work for are too tight to fork out for the WINAPI book I'm programming blind so it may be said. Can someone please supply some sample code to for example launch the DOS editor.

Many thanks in anticipation