Pay attention to the "" at the beginning and at the end!
Run the program and skip the long file name
cmd /c write.exe "c:\sample documents\sample.txt"
Gaps in the path to the program
cmd /c ""c:\Program Files\Microsoft Office\Office\Winword.exe""
Spaces in the program path + parameters
cmd /c ""c:\Program Files\demo.cmd"" Parameter1 Param2
Spaces in the program path + parameters with spaces
cmd /k ""c:\batch files\demo.cmd" "Parameter 1 with space" "Parameter2 with space""
Launch Demo1 and then Launch Demo2
cmd /c ""c:\Program Files\demo1.cmd" & "c:\Program Files\demo2.cmd""
CMD.exe (command shell)
moskito-x Oct 15 '12 at 9:29 2012-10-15 09:29
source share