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

后端 未结 7 1006
余生分开走
余生分开走 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:27

    If you only need to execute only one command all by itself and no wait needed, you should try "cmd /c", this works for me!

    cmd /c start iexplore "http://your/url.html"
    

    cmd /c means executing a command and then exit.

    You can learn the functions of your switches by typing in your command prompt

    anycmd /?
    
    0 讨论(0)
提交回复
热议问题