How to close the command line window after running a batch file?

后端 未结 7 1016
余生分开走
余生分开走 2020-12-13 08:23

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 ri

7条回答
  •  旧巷少年郎
    2020-12-13 09:10

    Your code is absolutely fine. It just needs "exit 0" for a cleaner exit.

     tncserver.exe C:\Work -p4 -b57600 -r -cFE -tTNC426B
     exit 0
    

提交回复
热议问题