问题
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.
回答1:
Use
START c:\wherever\whatever.exe
回答2:
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.
回答3:
This will probably suffice.
call "cmd /c start notepad.exe"
来源:https://stackoverflow.com/questions/2451861/how-to-not-wait-for-a-process-to-complete-in-batch-script