05/02/2025

Extracting Windows .dll icons

Note: This post originates in a thread I made in a random Discord server. The entire thing was Turkish, so I wanted to translate, edit, and upload it here. Hope the post would help you!

Hello everyone! While I research how to extract .dll files that contains icons to .ico files, I found an AUR (Arch Linux) package that exactly does this. After the package installation and testing, I wrote a Bash script to accelerate the icon extraction process.

This is the Bash script I wrote:


ICON_NAME="moricons"
ICON_TYPE="dll"
for i in {0..500}
do

     
   # You can execute this command in your Linux terminal manually, if you have the package (or compiled it manually).
   # But the execution of command only gives one of the icons from the dll file. I used a loop in bash, so you don't have to change the number in $i in every manual command.

   icoextract -n $i ./Downloads/$ICON_NAME.$ICON_TYPE ./Desktop/$ICON_NAME/icon$i.ico

# Also if the command gives errors repeatedly after a while, that means it found every single icon the dll has. To stop the script, press CTRL + C. 
done 

Here's a .rar file for some icons. there are .ico files from "pifmgr", "mmcndmgr" and "moricons" dll files. I could extract more icons from other .dll files, but I got lazy. See the bottom links for more icons' dll files and their names.

The AUR package I used
The dll and exe files from Windows 10 that contains icons

Welcome to the Computatrum's Blog

Hey everyone!
 
I want to declare our blog site is finally out! In this blog, I'll yap about my tech junks, life, anime, and etc. I want to go with this line of concept but if you see an odd post in my blog, don't get surprised. I always have something to talk about :D.

Where did I get this idea? Well, as a full-time internet personality, the concept of "blogging" is not that strange for me at all. I always made blog sites about many many stuff. I remember I made a blog post about the snowy weather in my city, in one of my blogs. But unfortunately (or fortunately), almost every single one has taken down by myself. AFAIK, the last one I made is staying there in private mode but I'm not sure. I need to look at that again. 
(It's not. I deleted it too, ROFL.)
 
Anyways, this is my blog and welcome! Welcome to the Computatrum's Blog.

(Also special thanks to my fellows Recai, Nommalorel, BLöF and the ones I couldn't count. They'll see this post earlier than normal.)
(Especially Nommalorel, he encouraged me to stand up, grab my laptop and edit this blog. Without he knowing (yet).)

My ThinkPad T470

About a few months ago, I finally bought a Lenovo ThinkPad T470 for 6300 Turkish liras, which makes 174USD as for the date of the blog.  I a...