Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Mass Change Folder Icon

28 Jun 2012   #1

Windows 7 Home Premium x64
Mass Change Folder Icon

This is not a default icon inquirey.

Thank you to Neutron16 for his/her tutorial on mass icon change using a predefined folder with custom icon as source. Closest thing to what I want yet, but not quite there yet.

I want to be able to write a bat, script, exe (visual basic) to change the icons by icon name. i.e. File named x.avi, code looks in icon directory for icon named x.ico, file named y.avi, code looks in icon directory for icon named y.ico, etc.

What I've found so far is that once a folder has had a custom icon, I can change the desktop.ini and the folder icon will change as well. If I restore the folder icon (custom properties dialog) or if the folder has never had a custom icon, changing the desktop.ini file never changes the folder icon, even after closing and reopening the windows explorer.

This implies there is another folder property which must be set.

I'm not strong in bat file command but I understand that xcopy copies everything including all properties. This is why Neutron16's bat works and my code does not.

Question is, what is the name of that property/properties and how do I access it or am I going down the wrong path here?

My System SpecsSystem Spec
28 Jun 2012   #2

Windows 7 Home Premium x64

Gotta love forums.

As I was forming the question above it caused me to rethink what I had already tried and what I already knew. "The folder must be set to ReadOnly for Windows to read the Desktop.ini file". (This is indeed the answer.)

This cause me to ask the question How do I make only the folder ReadOnly. Changing the the property to ReadOnly in the properties dialog only makes the contents of the folder ReadOnly. I did a search and found the answer, tried it and I can now change the icon by copying or creating the desktop.ini file by code or by hand.

Here is some code to give you a Context Menu to make the folder ReadOnly.
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Folder\shell\SetReadOnly] @="Set folder read-only" [HKEY_CLASSES_ROOT\Folder\shell\SetReadOnly\Command] @="cmd /c attrib +r \"%1\""
Save as .reg file and merge with Windows Registry.

Happy Icons.
My System SpecsSystem Spec

 Mass Change Folder Icon

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
Folder Icon - Change Default Icon
How to Change Windows 7 Default Folder Icons using Resource Hacker Windows 7 Folders are Live Folders , and they are not a single icon, but a combination of 5 different icons . In imageres.dll's icon group, the numbers of these 5 icons are respectively 3, 4, 5, 6, and 162 . So it is to change...
Folder Icon - Change Windows 7 Default Folder Icon
How to Change the Windows 7 Default Folder Icon This will show you how to change all of the default yellow folder icons in Windows Explorer to any custom icon that you want instead in Windows 7. User Folder icons will not be affected by this.If you have thumbnails turned on, then only...
Change folder icon
I wanna change icon a specific folder So that, by shifting the icon does not change. In other words, Icon is always fixed
How to change folder icon?
My problem is: I have downloaded these icons that have the theme of Windows 8. I'm changing a lot of system file icons around on my computer using the program "Default Program" it's great and all, but it doesn't support changing folder icons. I have to do it manually. I've used two of Brinks...
Mass change folder template on non-contiguous folders?
Is it possible to force Windows to accept a new "desktop.ini" file without using "Customise this folder..." on every folder? I finally decided on which details I wanted for a "Music" folder template. The way I have my file structure set up, I couldn't just go to the parent folder and cascade...
Change folder icon?
Hello i have recently downloaded Leopard icons & was trying to use it as my defaults icons but i didn't knew how to do it except- eg i want to change "Windows" folder in C drive. c - right click on Windows - select properties - click Customize - click Customize icon in the bottom- select...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:44.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App