Solved

extract firefox icon in batch script

Posted on 2013-06-21
3
272 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
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.
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…

776 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