MSFN Forum: Batch file help - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Batch file help Rate Topic: -----

#1 User is offline   IRON FART 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 17-April 05

Posted 30 July 2005 - 03:59 PM

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:

-install-global-extension said:

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.


#2 User is offline   TwoWarriors 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 27-July 05

Posted 30 July 2005 - 04:24 PM

Remove the 'start /wait' and try again

#3 User is offline   Achdine 

  • Junior
  • Pip
  • Group: Members
  • Posts: 97
  • Joined: 11-May 05

Posted 30 July 2005 - 08:04 PM

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy