Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to NOT wait for a process to complete in batch script?

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

like image 504
TruMan1 Avatar asked Mar 16 '10 03:03

TruMan1


People also ask

Does batch file wait for command to finish?

There are multiple commands and installation processes in a Batch file that usually take some time to complete. But when a Batch file is run, it does not wait for a command process to finish; it executes all commands line by line.

How do I run a batch file without closing it?

Add a pause statement to a batch file If you're creating a batch file and want the MS-DOS window to remain open, add PAUSE to the end of your batch file. This prompts the user to Press any key. Until the user presses any key, the window remains open instead of closing automatically.


1 Answers

This will probably suffice.

call "cmd /c start notepad.exe"
like image 106
Michael Sondergaard Avatar answered Oct 25 '22 14:10

Michael Sondergaard