I have a batch file which moves a few files and starts a program and for some reason, after the batch file goes through all the commands in it, it doesn\'t close. The comman
i dont know what u trying to do... but if u wanna exit/close those batch file just used
:Exit
exit
if you wanna force close other's application try this commands
:Exit
Taskkill /IM cmd.exe /f /t
Example: ( This just for education purpose only. )
@echo off`
. Press continue if you wanna close explorer.exe.
pause
Taskkill /IM explorer.exe /f /t
the function will kill task for explorer.exe