How to automatically close cmd window after batch file execution?

后端 未结 8 1610
半阙折子戏
半阙折子戏 2020-11-30 23:47

I\'m running a batch file that has these two lines:

start C:\\Users\\Yiwei\\Downloads\\putty.exe -load \"MathCS-labMachine1\"
\"C:\\Program Files (x86)\\Xmi         


        
8条回答
  •  伪装坚强ぢ
    2020-12-01 00:26

    Modify the batch file to START both programs, instead of STARTing one and CALLing another

    start C:\Users\Yiwei\Downloads\putty.exe -load "MathCS-labMachine1"
    start "" "C:\Program Files (x86)\Xming\Xming.exe" :0 -clipboard -multiwindow
    

    If you run it like this, no CMD window will stay open after starting the program.

提交回复
热议问题