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

Similar help and support threads for2: Mass Change Folder Icon
Thread Forum
Folder Icon - Change Windows 7 Default Folder Icon Tutorials
Folder Icon - Change Default Icon Tutorials
Open Folder Icon - Change Tutorials
How to change folder icon? Customization
Solved Mass change folder template on non-contiguous folders? Customization
Solved How to change LIVE FOLDER ICON ? Customization
Solved Change folder icon? Customization

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 01:47 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App