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: Bulk Change All Folder Icons in Single Folder or Folder Type


15 Apr 2011   #1

Windows 7 Ultimate x64
 
 
Bulk Change All Folder Icons in Single Folder or Folder Type

First, please forgive me if I have overlooked this issue in the many searches I have performed thus far.

I would like to know if anyone has a way to change all folder icons within a single folder to one specific icon without performing each one individually. I have over 1,400 folders within a master folder of which I would like to change the child folder icons. I really don't wish to perform this on a folder-by-folder basis.


This is not a Default Folder Icon Change inquiry. This is simply all child folders within a single master folder. I would also be interested if the change would affect all folders of a specific type. Windows 7 does allow the 'setup' of a folder to be distributed (details view with selected details, order, and column size for example) but the icon did not distribute as well.

Any suggestions?

My System SpecsSystem Spec
.

15 Apr 2011   #2

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

First, a little bit of theory. What happens when a person sets a custom icon for a folder in Windows 7?
1. Attributes of a Folder change to Read-only (of the folder, NOT content!).
2. A hidden system file created inside that folder, which contains a link to the icon.

Thus, having such file as model, it is possible simply copy it across desired folders, and change attributes of those folders correspondingly.

Secondly, having this idea in my mind, I have put all of my little knowledge of Batch files together and created a script.
BEFORE script is started the following is needed to be done:
Master folder needs to be selected and a custom icon applied to it.

ONLY AFTER THAT
1. Script is placed inside that master folder and launched.
2. First, script checks if hidden system file with custom icon settings is there.
3. Secondly, script looks for subfolders and start changing its attributes.
4. Thirdly, script copies this settings file to all subfolders of current master folder, including all levels of subfolders.


For 100 folders it took about 21 seconds, for 200 folders with different levels of subfolders it took about 57 seconds on my laptop.

I have included remarks (comments) in the source code for better understanding what is going on.

UPDATE: Original file deleted. Script was not meant to be applied to system folders.
Please check a newer FIXED version at this post.

PLEASE READ NEW INSTRUCTION IN THAT POST.
My System SpecsSystem Spec
16 Apr 2011   #3

Windows 7 Ultimate x64
 
 

Neutron16

Works Perfectly. Thank you Very much. Performed two separate tests and will run the batch for the entire 1400+ a little later in the day. Again... Thank You!!

My System SpecsSystem Spec
.


19 Apr 2011   #4

Windows 7 Ultimate x32
 
 

Neutron16... I love you. I have been wanting to be able to do this forever. ♥
My System SpecsSystem Spec
15 May 2011   #5

Windows 7 Ultimate x64
 
 

Can you please tell me exactly how to do what is necessary to use your super cool bat file.

By the way totally loving this you rock man!
I have wanted to know how to do this for so long!

Thank you
My System SpecsSystem Spec
15 May 2011   #6

Windows 7 Ultimate x64
 
 

So I got it to work, but still unsure how to change the attributes.
Sorry if that is silly but I dont know how.
Can you please let me know.
Again thanx in advance
My System SpecsSystem Spec
15 May 2011   #7

Microsoft Community Contributor Award Recipient

Win 7 Pro x64 / Win 8.1 Pro
 
 

Quote   Quote: Originally Posted by Tweak Hound View Post
So I got it to work, but still unsure how to change the attributes.
Sorry if that is silly but I dont know how.
Can you please let me know.
Again thanx in advance
Right click>Properties
Jerry


Attached Images
 
My System SpecsSystem Spec
15 May 2011   #8

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by krissasaur View Post
Neutron16... I love you. I have been wanting to be able to do this forever. ♥
Quote   Quote: Originally Posted by Tweak Hound View Post
Can you please tell me exactly how to do what is necessary to use your super cool bat file.

By the way totally loving this you rock man!
I have wanted to know how to do this for so long!

Thank you
Quote   Quote: Originally Posted by Tweak Hound View Post
So I got it to work, but still unsure how to change the attributes.
Sorry if that is silly but I dont know how.
Can you please let me know.
Again thanx in advance
Is that not to change attributes to folders and files, where as in this case just need to change the attibutes for folders ONLY?
My System SpecsSystem Spec
15 May 2011   #9

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

Quote   Quote: Originally Posted by Tweak Hound View Post
Is that not to change attributes to folders and files, where as in this case just need to change the attibutes for folders ONLY?
Tweak Hound, you do not need to change attributes yourself, script does that for you.

All you need is to change icon of a master folder and put that script inside that master folder and run it as administrator.

The part in my post there I talk about attributes is just for your information.
Because when I give solutions I also try to explain why and how they work.

And also, inside script there are detailed comments in case anybody wants to use/copy part of the script.
My System SpecsSystem Spec
09 Jun 2011   #10

Windows 7 64 bit
 
 

Am new to the forum, but I'd like to thank you very much for making this available to one and all.

It is kindly appreciated.
My System SpecsSystem Spec
Reply

 Bulk Change All Folder Icons in Single Folder or Folder Type




Thread Tools




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 06:36 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33