I would say the pause is never running. does the window remain open if you take the pause out completely? perhaps the program is not exiting. you can try running the batch file via the command prompt as well so you can see what the output is when its finished.
- Timmerz
Can you provide some more info? Is program.exe maybe a Windows command that doesn't terminate?
- Marc
it's phpunit. it terminates bc i can see when it finishes..
- Alex
c:\program.exe is not a batch file.... ;-)
- Timmerz
2 Answers
10
votes
It fails because you are not running an executable directly - you are running it via the phpunit.bat batch file (based on information in comment added to question).
You must CALL a batch file from within another batch file if you want to return to the caller
call phpunit
pause
1
votes
Try saving before opening the bat file, it worked for me
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
program.exemaybe a Windows command that doesn't terminate? - Marcstart /WAITto launchprogram.exe. - Heath Hunnicutt