我正在尝试自动安装插件。 Mozilla says非常简单,但是:

  • 在.bat文件或miltsec的while中找不到任何sleep循环。
  • 我不明白,如何依次在一个CMD窗口中使用activate.batcfx 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/

    10-10 02:52