IRON FART Posted July 30, 2005 Share Posted July 30, 2005 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 Extensionstart /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 More sharing options...
TwoWarriors Posted July 30, 2005 Share Posted July 30, 2005 Remove the 'start /wait' and try again Link to comment Share on other sites More sharing options...
Achdine Posted July 31, 2005 Share Posted July 31, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now