Ok I have a .cmd with this command:
%PROGRAMFILES%\\Mozilla Firefox\\extensions\\*xpi
This command have to run a few .xpi's files that are located in a text file (i've used the
DIR folder /B > myfile.txt to get the filenames).
The myfile.txt looks like this:
adblock_plus-0.7.5.1-fx+tb+sm+fl.xpi
downthemall!-0.9.9.10-fx+tb+fl.xpi
fasterfox-2.0.0-fx.xpi
videodownloader-1.1.1-fx.xpi
How get I this filenames in the command above? So that the computer will run the executables one by one.
Please say if it is impossible of you don't understand me
Edit: Got the solution:
FOR /F %%i IN ('DIR /B /A-D "%ProgramFiles%\Mozilla Firefox\extensions\*.xpi"') DO "%ProgramFiles%\Mozilla Firefox\firefox.exe" -install-global-extension "%ProgramFiles%\Mozilla Firefox\extensions\%%i"