Run another EXE and wait for termination
Could anyone provide help with running an EXE (for example a command line utility) and wait for termination? I was also thinking of using the Shell command and "Start /wait filename.exe" however will this work? If not, could someone provide a simple "alternative" in vb. Thanks in advance.
Re: Run another EXE and wait for termination
i remember i found a thred in vbf which discribe how to shellexecute and get the app's process id. let me check it. so if it posible, you can keep watching weather the process is running and take a decision when that app terminated.
Re: Run another EXE and wait for termination
Well, this is 1 way:
Code:
Shell "winmine"
Do while findWindow(vbnullstring,"Minesweeper") = true
loop
msgbox "Window not found anymore."
Re: Run another EXE and wait for termination
Will this method work on command line utilities?