Computing.Net > Forums > Programming > pause batch until exe window is closed

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

pause batch until exe window is closed

Reply to Message Icon

Name: BOBDESK
Date: June 8, 2009 at 22:12:41 Pacific
OS: Windows XP
CPU/Ram: athlon 64/2 mb
Subcategory: Batch
Comment:

Hey Guys:

I want to pause a batch until an exe called by batch is closed.
tried a bunch of commands
start/wait
pause
ping

cannot get it working
any thoughts please.




Response Number 1
Name: IVO
Date: June 9, 2009 at 01:56:32 Pacific
+1
Reply:

Start "" /W "Your_Exe" shpuld work, anyway just run your .exe inside the batch by coding

.....
"Your_Exe"
........

A batch file executes statemebts sequentially, so it stops to go on until the invoked .exe is closed.



Response Number 2
Name: BOBDESK
Date: June 9, 2009 at 06:40:37 Pacific
+1
Reply:

Does not work
program is as follows:
@ECHO OFF
@ECHO >> VERIFY.TXT
@echo BEGIN %computername%, %date%, %time% >> verify.txt
START /WAIT f:\bat\atomic.exe
@echo END-3 %computername%, %date%, %time% >> verify.txt

where verify text is a running text file and the program finds the employee who is screwing with the computer system clock



Response Number 3
Name: Judago
Date: June 9, 2009 at 14:05:40 Pacific
+1
Reply:

Have you actually tried calling the exe?

call f:\bat\atomic.exe



Response Number 4
Name: Mechanix2Go
Date: June 10, 2009 at 07:03:10 Pacific
+1
Reply:

Like IVO said, just run the exe.


=====================================
If at first you don't succeed, you're about average.

M2



Response Number 5
Name: BOBDESK
Date: June 10, 2009 at 21:44:57 Pacific
+1
Reply:

WILL TRY IT WHEN I RETURN FROM SHORT TRIP ON SUNDAY.



Related Posts

See More



Reply to Message Icon

Textbox in VB Delete a common folder fr...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Google Ads



Results for: pause batch until exe window is closed

batch start n.exe how close during? www.computing.net/answers/programming/batch-start-nexe-how-close-during/17437.html

Batch File--closing www.computing.net/answers/programming/batch-fileclosing/9771.html

Tell a .bat to close itself? www.computing.net/answers/programming/tell-a-bat-to-close-itself/17227.html