我可以从一个批处理文件 运行 多个 CakePHP 控制台命令吗?
Can I run multiple CakePHP console commands from a batch file?
我有一个批处理文件,其中包含:
cake RunPayroll
cake RunInvoices
cake Run[etc.]
但是当我运行它时,只有第一个命令完成,然后批处理文件停止。 运行从一个批次中执行多个控制台命令的秘诀是什么?
添加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?
我有一个批处理文件,其中包含:
cake RunPayroll
cake RunInvoices
cake Run[etc.]
但是当我运行它时,只有第一个命令完成,然后批处理文件停止。 运行从一个批次中执行多个控制台命令的秘诀是什么?
添加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?