Pradeep
Pradeep

Reputation: 3468

In batch files calls to executables are sequential or not?

Let say ,I have a batch file and I have three commands like:

Execute A process --- Step 1 Execute B process --- Step 2 Execute C process --- Step 3

So,if my step 1 takes time to execute then will the control wait for its completion and then go to Step 2 or all the steps may gets executed in parallel?

Upvotes: 1

Views: 1106

Answers (3)

Mrchief
Mrchief

Reputation: 76218

If they are commands (internal commands like DOS commands or XP's commands), they will wait (run sequentially).

If they are external processes/programs, they won't unless you start them with start /wait [program].

Upvotes: 3

alexmherrmann
alexmherrmann

Reputation: 1073

They will NOT be executed in parallel, they are sequentially executed. It's the same with any Unix/Linux Script. In fact most "Shell scripts" are executed this way.

Upvotes: 0

dnch
dnch

Reputation: 9605

They will execute sequentially.

Upvotes: 0

Related Questions