我有一个包含以下内容的批处理文件:
cake RunPayroll
cake RunInvoices
cake Run[etc.]
但是当我运行它时,只有第一个命令完成,然后批处理文件停止。从一个批处理中运行多个控制台命令的秘诀是什么?
答案 0 :(得分:1)
添加call
:
call cake RunPayroll
call cake RunInvoices
请参阅Several ways to call a windows batch file from another one or from prompt. Which one in which case?