Link to home
Start Free TrialLog in
Avatar of msifox
msifoxFlag for Germany

asked on

extract firefox icon in batch script

Hi Experts,

I need a free program to save the first icon from firefox.exe to an ico-file, that can be run from a script. So it must get its task from the commandline, not with mouse clicks in a graphical user interface. Which icon- or resource extractor program can do this?
ASKER CERTIFIED SOLUTION
Avatar of Member_2_6515809
Member_2_6515809

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of msifox

ASKER

This sounds great. But when I extract all icons from firefox.exe, half of the files have a size of 289 kilobytes. All extracted icon files together have almost the same size as firefox.exe itself.

The icon that I'm looking for needs only 4 kilobytes.

Looks like the ico files contain the icons in many resolutions, including very high resolution, and probably as uncompressed bitmap.

So this solves only part of my problem. How can I get the first icon just in one resolution, for example 48x48 pixels? Hmm, maybe I could program this myself, the file format of the ico files looks simple.
Avatar of Member_2_6515809
Member_2_6515809

msifox, a quick glance at what's available does suggest you may have to do that bit of the job yourself I'm afraid, I've just tested a few apps that might have done it, none work well I'm afraid. MSDN has some reference material on the file format here this might be useful.