Cmd window pops up and closes windows 10

broken image

SOLUTION: For example there's a great little free program called BgInfo which will display all the info about your computer. If you want to make sure the file has run and the DOS window closes after 2 seconds, you can add the lines: timeout 2 >nulīut the exit command will not work if your batch file opens another window, because while ever the second window is open the old DOS window will also be displayed. You normally end a batch file with a line that just says exit. If you run it like this, no CMD window will stay open after starting the program.

broken image

Start '' 'C:\Program Files (x86)\Xming\Xming.exe' :0 -clipboard -multiwindow 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'