Hi,
I want to run a DOS application from my VB application.
My question is how to run a DOS application in VB application without display DOS prompt window.
Printable View
Hi,
I want to run a DOS application from my VB application.
My question is how to run a DOS application in VB application without display DOS prompt window.
this works under NT 4
Shell "cmd.exe /C dir",vbhide
(in win95 you should use command instead of cmd
Thank u very much.
One more question, my application will lose focus (VBHide) and doesn't wait for the dos application end.
May be I can use AppActivate to get focus again, I am not sure.
How to detect if the started dos application is ended?
if you need to wait for the end of the started app, I suggest you use the CreateProcess API and WaitForSingleObject.