I am trying to create a batch script that opens a program. I am doing some testing and I can\'t figure this out:
If I run CMD.exe and input start /d \"C:\\wamp\" w
start "some-text"
starts a new command window with "some-text" as the title of the window. To start a program, do not use the quotes around the argument
start program-name
Because the start program's syntax expect the window title as its first quoted argument.
(see start /?
). You can supply an empty string, however:
start "" "C:\wamp\wampmanager.exe"
or, if you don't need quotes to mask parts of the path, just leave them out altogether:
start C:\wamp\wampmanager.exe