Question Locked

Batch File closes before finishing.

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have created a batch file that exicutes a number of different cmd's. My batch files is closing right after the FramePkg.exe is done running. cmdagentMCAFEE.bat & cdmagentNA.bat don't run...What am I doing wrong or how can I stop this from happening??!!

J:
cd\
cd ImageBatchFiles
DeleteGuid.reg
cadFix.reg
FramePkg.exe
cmdagentMCAFEE.bat
cdmagentNA.bat
cls
exit

3 replies

by jswentworth

Create a second batch file that runs the FramePkg.exe, use the CALL command inside your original batch file to run that Batch file. Then use the CALL command for the other two batch files as well.
Call will return control to the original batch file after the CALLed batch file exits.

by jiminpa

cmdagentMCAFEE.bat & cdmagentNA.bat run independantly? Maybe the reason it doesn't look like they are running is because it is erroring and the batch file is just skipping it. For trouble shooting purposes, try adding the command "pause" in between each step to see if it really is closing after FramPkg.exe.

This discussion is closed to new replies.