0

I have a batch file that contains:

cake RunPayroll 
cake RunInvoices
cake Run[etc.]

But when I run it, only the first command completes, then the batch file stops. What's the secret to running multiple console commands from a single batch?

MM.
  • 1,966
  • 4
  • 20
  • 24

1 Answers1

1

Add call:

call cake RunPayroll 
call cake RunInvoices

See Several ways to call a windows batch file from another one or from prompt. Which one in which case?

Community
  • 1
  • 1
floriank
  • 25,546
  • 9
  • 42
  • 66