我可以从批处理文件中运行多个CakePHP控制台命令吗?

时间:2015-02-19 23:28:39

标签: cakephp batch-file console

我有一个包含以下内容的批处理文件:

cake RunPayroll 
cake RunInvoices
cake Run[etc.]

但是当我运行它时,只有第一个命令完成,然后批处理文件停止。从一个批处理中运行多个控制台命令的秘诀是什么?

1 个答案:

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