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?
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?
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?