10
1
I've tried launching several programs through a batch file and encountered problems but that is in the past.
I'm relatively new to scripts and command lines and this would be my question: What's the difference between the following cmd scripts?
This one is accepted
Start Chrome
(i'm guessing here that some installed programs are recognized by title, even though the dir is not where the chrome.exe is the program still launches, registry keys play a part in this?)
this one works also
cd "FOO_DIR"
start FOO.exe
however these don't
start "FOO_DIR\FOO.exe"
(opens a new window without launching FOO.exe)
start /B "FOO_DIR\FOO.exe"
(writes the copyright text again and does nothing else)
(OS Windows 7 x64)
Furthermore, AFAIR, the title is mandatory when launching executables with command-line switches – abstrask – 2014-03-11T13:07:25.553
1It's not that
start
expects a title as its first argument (otherwisestart chrome
wouldn't work), it's that if its first argument is quoted, it expects it to be a title. – jamesdlin – 2014-03-12T00:23:14.360@jamesdlin ah, the documentation on this is a bit vague, thanks. I edited the answer accordingly – crater2150 – 2014-03-12T12:45:04.697