I've got a batch file. After it finished running, i.e. all command lines have been executed, the cmd.exe window stays open. However, I'd like to have it closed right after the batch file finishes its job.
So far I've tried using the exit
command within the batch file to close the cmd window (I also have a shortcut on the desktop) but it doesn't seem to work:
tncserver.exe C:\Work -p4 -b57600 -r -cFE -tTNC426B
exit