Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run 'cfx xpi' after 'activate' via .bat?

I'm trying to automatize installing of my addon. Mozilla says that it's very simple, but:

  1. I didn't find any while loops in .bat files or sleep for milisec.
  2. I can't understand, how to use activate.bat and cfx xpi in one CMD window sequentially, and also use wget in other CMD after all.

How can I do even if second part? I've tried something like:

START cmd /K "activate "cfx xpi"" && wget --post-file=tst-closing-cur-tab.xpi http://localhost:8888/

or

START cmd /K "activate && "cfx xpi"" && wget --post-file=tst-closing-cur-tab.xpi http://localhost:8888/

but it always run cfx in CMD, not in 'virtual CMD' after activate

like image 437
Nexen Avatar asked Oct 31 '22 22:10

Nexen


1 Answers

I use this

call "c:\Firefox\Sdk\bin\activate.bat"
cd c:\dev-1.0.2.5-firefox\
cfx xpi
like image 51
Suhan Avatar answered Nov 09 '22 12:11

Suhan