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! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to 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.



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: June 9, 2009 at 01:56:32 Pacific
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.


0

Response Number 2
Name: BOBDESK
Date: June 9, 2009 at 06:40:37 Pacific
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


0

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

Have you actually tried calling the exe?

call f:\bat\atomic.exe


0

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

Like IVO said, just run the exe.


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

M2


0

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

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


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






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


Sponsored links

Ads by Google


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