批处理文件中的第二个命令不会运行

时间:2016-04-27 12:24:50

标签: batch-file rspec

我有一个运行两个rspec命令的.bat文件

rspec --pattern F:\giza\coreui\runtime_regression\featuresets\Grid\Grid\Actions\spec\*_spec.rb --format html > F:\output_chrome.html
rspec --pattern F:\giza\coreui\runtime_regression\featuresets\Grid\Grid\Actions\spec\*_spec.rb --format html > F:\output_firefox.html

但是,第二个命令不会执行。 我做错了什么?

1 个答案:

答案 0 :(得分:1)

Probably rspec is a batch file and that's why only one is executed。请尝试:

call rspec --pattern F:\giza\coreui\runtime_regression\featuresets\Grid\Grid\Actions\spec\*_spec.rb --format html > F:\output_chrome.html
call rspec --pattern F:\giza\coreui\runtime_regression\featuresets\Grid\Grid\Actions\spec\*_spec.rb --format html > F:\output_firefox.html