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
If you want to separate the commands into one command per file, you can do
cmd /c start C:\Users\Yiwei\Downloads\putty.exe -load "MathCS-labMachine1"
and in the other file, you can do
cmd /c start "" "C:\Program Files (x86)\Xming\Xming.exe" :0 -clipboard -multiwindow
The command cmd /c will close the command-prompt window after the exe was run.