Click to See Complete Forum and Search --> : How to start a program without using Shell


Shalini Shikha
October 9th, 1999, 01:29 PM
I have to execute a program(a .exe) from within VB and wait for the routines to finish execution. Can I do this without using the function Shell? If yes, how?

czimmerman
October 9th, 1999, 05:43 PM
See http://www.freevbcode.com/ShowCode.Asp?ID=99 and http://www.freevbcode.com/ShowCode.Asp?ID=219.

Lothar Haensler
October 11th, 1999, 01:46 AM
you can use the following APIs to do what you want:
- CreateProcess
- WaitForSingleObject