Solved

extract firefox icon in batch script

Posted on 2013-06-21
3
269 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why do Marketing keep bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

Join & Write a Comment

Suggested Solutions

If you Lost your Administrator password for Windows XP, Vista, or 7 this CD will help you reset the password to blank so you can log in. Once in you should change that blank password to something!! Download the ISO on this page http://www.spl…
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now