I'm executing a program using a Shell command:
Shell("c:\myprogram.exe"
I need to wait until "myprogram.exe" finishes running before proceeding with the rest of my application. Does anyone know how to make your VB app wait for the Shell command to return from executing the application you ran?
MSDN says:
"Note: By default, the Shell function runs other programs asynchronously. This means that a program started with Shell might not finish executing before the statements following the Shell function are executed."
Is there a way to change this default setting? Or does anyone know another way to execute a program other than using a Shell command? Thanks for the help.
Shell("c:\myprogram.exe"
I need to wait until "myprogram.exe" finishes running before proceeding with the rest of my application. Does anyone know how to make your VB app wait for the Shell command to return from executing the application you ran?
MSDN says:
"Note: By default, the Shell function runs other programs asynchronously. This means that a program started with Shell might not finish executing before the statements following the Shell function are executed."
Is there a way to change this default setting? Or does anyone know another way to execute a program other than using a Shell command? Thanks for the help.