Running another program in Windows bat file and not create child process

Synchronous. The second notepad won’t launch until you close the first.

notepad.exe c:\temp\a.txt
notepad.exe c:\temp\b.txt

Asynchronous: The second notepad will launch even if you haven’t closed the first.

start notepad.exe c:\temp\a.txt
start notepad.exe c:\temp\b.txt

More info about the start command:
http://www.robvanderwoude.com/ntstart.php

EDIT: The following comment was made elsewhere by @zhongshu, the original poster. I’m only copying it here:

start cmd /c doesn’t work because SVN
post-commit hook will wait for the
hook and the child process created by
the hook exit. It’s the design of SVN.
I have found a solution, Please refer:
http://svn.haxx.se/users/archive-2008-11/0301.shtml

Assuming that he knows what he’s talking about, I’m wrong and…undeserving.

Leave a Comment