How to start an application without waiting in a batch file?

WindowsBatch File

Windows Problem Overview


Is there any way to execute an application without waiting in batch file? I have tried the start command but it just creates a new command window.

Windows Solutions


Solution 1 - Windows

I'm making a guess here, but your start invocation probably looks like this:

start "\Foo\Bar\Path with spaces in it\program.exe"

This will open a new console window, using “\Foo\Bar\Path with spaces in it\program.exe” as its title.

If you use start with something that is (or needs to be) surrounded by quotes, you need to put empty quotes as the first argument:

start "" "\Foo\Bar\Path with spaces in it\program.exe"

This is because start interprets the first quoted argument it finds as the window title for a new console window.

Solution 2 - Windows

I used start /b for this instead of just start and it ran without a window for each command, so there was no waiting.

Solution 3 - Windows

If your exe takes arguments,

start MyApp.exe -arg1 -arg2

Solution 4 - Windows

If start can't find what it's looking for, it does what you describe.

Since what you're doing should work, it's very likely you're leaving out some quotes (or putting extras in).

Solution 5 - Windows

EDIT moved /B parameter/switch to before the command path, as per Nime Cloud's recommendation

I successfully used a combo of @joey's post, with added /B flag, as follows

START "" /B "Path\To\Application.exe"

Partial output from help command: HELP START...

  B  Start application without creating a new window. The
     application has ^C handling ignored. Unless the application
     enables ^C processing, ^Break is the only way to interrupt
     the application.

Solution 6 - Windows

This command starts ClamAV in a seperate console window with custom icon of clamd.exe

start "c:\clamav\clamd.exe" "c:\clamav\clamd.exe"

So the generic format would be like:

start "Your new title" "c:\path\your.exe"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMark AttwoodView Question on Stackoverflow
Solution 1 - WindowsJoeyView Answer on Stackoverflow
Solution 2 - WindowsEd BayiatesView Answer on Stackoverflow
Solution 3 - WindowsShital ShahView Answer on Stackoverflow
Solution 4 - WindowsegruninView Answer on Stackoverflow
Solution 5 - WindowsTechSpudView Answer on Stackoverflow
Solution 6 - WindowsNime CloudView Answer on Stackoverflow