Windows 7 – Start Executables with Space Named Files Without Waiting

batch filecommand linewindows 7

I would like to create shortcuts to some executable files (exe, bat, com…) on Windows 7 using bat files, but I had some troubles with that:

  1. start notepad.exeworks perfectly, but start Foxit Reader.exe or start "Foxit Reader.exe" will not function. How to use start command with files named with space characters?

  2. call notepad.exe or start "Foxit Reader.exe" or just notepad.exe or "Foxit Reader.exe" works but a command prompt is opened and remains opened until the user close it or called executable. Any way to avoid it?

Best Answer

Read help for start carefully. And start does not wait for started process termination by default (there is /wait flag for "waiting" mode).

start "" "Foxit Reader.exe"
Related Question