|
-
Apr 22nd, 2009, 01:49 AM
#1
Thread Starter
Junior Member
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.
-
Apr 22nd, 2009, 02:27 AM
#2
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.
-
Apr 22nd, 2009, 01:24 PM
#3
Addicted Member
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."
-
Apr 23rd, 2009, 03:43 AM
#4
Thread Starter
Junior Member
Re: Run another EXE and wait for termination
Will this method work on command line utilities?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|