views:

55

answers:

4

I a batch script that calls a process and it waits for the process to complete before going to the next line by default. Is there a way (or a switch) for it NOT to wait and just run the process and continue? I am using Windows 2008.

A: 

Use

CMD /C c:\wherever\whatever.exe
Sam
DOESN'T WORK. -
Joshua
A: 

Use powershell and use the new-job syntax.

PS> new-job { command }

You can check what jobs you have running using the jobs command.

Joshua Smith
A: 

This will probably suffice.

call "cmd /c start notepad.exe"
Sheeo
+3  A: 

Why not just start somecmd.exe or start "" "some command with spaces.exe"?

Note that if your command has spaces, you must put quotes around it, but if the first argument to start has quote around it the command is the second argument, so I have two sets of quotes there.

Gabe