Solved

extract firefox icon in batch script

Posted on 2013-06-21
3
275 Views
Last Modified: 2013-07-12
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?
0
Comment
Question by:msifox
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
BlueCompute earned 500 total points
ID: 39265717
As is so often the case, nirsoft have exactly the tool you need:
http://www.nirsoft.net/utils/iconsext.html
Scroll right down and there's a section on "command line support".
If you're having problems getting this to work for your specific requirements, post back with a bit more detail and we can probably help.
0
 
LVL 7

Author Comment

by:msifox
ID: 39271854
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.
0
 
LVL 14

Expert Comment

by:BlueCompute
ID: 39274297
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.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question