我正在尝试自动安装插件。 Mozilla says非常简单,但是:
while
中找不到任何sleep
循环。 activate.bat
和cfx xpi
,以及毕竟如何在其他CMD中使用wget。 即使第二部分该怎么办?我已经尝试过类似的方法:
START cmd /K "activate "cfx xpi"" && wget --post-file=tst-closing-cur-tab.xpi http://localhost:8888/
或者
START cmd /K "activate && "cfx xpi"" && wget --post-file=tst-closing-cur-tab.xpi http://localhost:8888/
但它总是在
cfx
后在CMD中运行activate
,而不是在“虚拟CMD”中运行 最佳答案
我用这个
call "c:\Firefox\Sdk\bin\activate.bat"
cd c:\dev-1.0.2.5-firefox\
cfx xpi
关于batch-file - 如何通过.bat在 'cfx xpi'之后运行 'activate'?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23969572/