Stacked
Stacked

Reputation: 7336

Call a batch file different times

I'm calling a batch file from another one as follows

caller.bat:

CALL called.bat %param%=someValue1
CALL called.bat %param%=someValue2
CALL called.bat %param%=someValue3

I'm passing a parameter that's used in called.bat, the idea is to run the called.bat different times with a different parameter each time. when the caller.bat runs, only the first call is executed!

Am I missing something?

Upvotes: 0

Views: 70

Answers (1)

Endoro
Endoro

Reputation: 37569

try this:

start /b "" called.bat %param%=someValue1

Upvotes: 1

Related Questions