Jump to content

Batch file help


IRON FART

Recommended Posts

I can't get my batch script to work. I'm trying to silently install Firfox extensions, but it won't work.

Here is the command for doing the job:

start /wait "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -install-global-extension "%PROGRAMFILES%\Mozilla Firefox\adblock.xpi"

And here is the same thing in the batch script:

echo.
echo Installing First Extension
start /wait "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -install-global-extension "%PROGRAMFILES%\Mozilla Firefox\adblock.xpi"

It won't work though!

An error box titled "-install-global-extension" will come up saying:

Windows cannot find '-install-global-extension'. Make sure you typed the name correctly and then try again. To search for a file, click the Start button and click Search.

Or you could just copy the above code and make your own batch file and see the error yourself.

Link to comment
Share on other sites


If the first thing after "Start /Wait" is quoted, it uses it as the title for the cmd window. Just change the command to

Start /Wait "" "%ProgramFiles%\Mozilla Firefox\Firefox.exe" -install-global-extension "%ProgramFiles%\Mozilla Firefox\adblock.xpi"

Note the empty quotes following the "/Wait" switch.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...