Running batch files synchronous

G

Guest

Hello,

When a batch file runs, and you set it to call on another batch file to run part way through, it stops whilst running the second script and then continues. Is there a way to have both running synchronously to save time??

Any advice much appreciated, TIA
 
J

Jerold Schulman

Hello,

When a batch file runs, and you set it to call on another batch file to run part way through, it stops whilst running the second script and then continues. Is there a way to have both running synchronously to save time??

Any advice much appreciated, TIA

Yes.

Use the Start command. See tip 364 in the 'Tips & Tricks' at
http://www.jsiinc.com

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
D

David Wang [Msft]

FYI: what you are asking is to "how run two batch files asynchronously" --
NOT synchronously.

The behavior you described, where if one batch file calls another, it stops
and waits until the other finishes, is synchronous execution.

As Jerold stated, the "START" command allows batch files to asynchronously
launch another command.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
Hello,

When a batch file runs, and you set it to call on another batch file to run
part way through, it stops whilst running the second script and then
continues. Is there a way to have both running synchronously to save time??

Any advice much appreciated, TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top