pause batch until exe window is closed

June 8, 2009 at 22:12:41
Specs: Windows XP, athlon 64/2 mb
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.


See More: pause batch until exe window is closed

Report •


#1
June 9, 2009 at 01:56:32
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.


Report •

#2
June 9, 2009 at 06:40:37
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


Report •

#3
June 9, 2009 at 14:05:40
Have you actually tried calling the exe?

call f:\bat\atomic.exe


Report •

Related Solutions

#4
June 10, 2009 at 07:03:10
Like IVO said, just run the exe.


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

M2


Report •

#5
June 10, 2009 at 21:44:57
WILL TRY IT WHEN I RETURN FROM SHORT TRIP ON SUNDAY.

Report •


Ask Question