Automatically closes cmd bat file command

Viewed 28

How can I make my bat file script automatically closes after finish running?

D:
cd D:/MC/gzymc/opt/

rem Start the Message Center and redirect the output.
START cmd /K GodzMC_Child.bat 

rem Count the Number of Processes that are supposed to be running based on the cfg file
set mailString="Starting Godz Message Center on %COMPUTERNAME%"
   
echo "------------------------------" >> D:/MC/gzymc/logs/mc_extra_Godz.log
echo %date% %time% >> D:/MC/gzymc/logs/mc_extra_Godz.log
echo %mailString% >> D:/MC/gzymc/logs/mc_extra_Godz.log

EXIT /B

It is not automatically closing Thank for your help

0 Answers
Related