Solved

extract firefox icon in batch script

Posted on 2013-06-21
3
276 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
Configuring Remote Assistance for use with SCCM
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

688 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