I have a folder of 10 folders and I would like to change each folder to a different icon. Each of those icons is already made in another folder. (each folder will have a different icon)

How would I automate or batch this task to save me having to do it indivually. As I will have more sets of icons to do.


Where are the actual icons you are going to apply to the folders?

If they are not within a .dll file, you could make one using the free 30-day trial of IcoFX or some similar software.

Within each folder there is a hidden file called desktop.ini. They have the file system attributes of S (System), A (Files ready for archiving) as well as H (Hidden). You can see these by adding the Attributes column in an Explorer window.

The desktop.ini files look like this for a standard yellow folder:


In a desktop.ini file in one your [already] customised folder, the important lines are IconFile, which points to the location of your icon.dll file that you made, and the IconIndex line, which points to the particular coloured icon within the file.

You copy the same file to each of the folders you want to customise, but the IconIndex value will be different, depending on the colour. Make sure that they have the HSA attributes.

  • I've done as you have said just changing the iconindex as well as the iconfile, but its not working. It doesn't change anything. – Aasim Azam Nov 6 '16 at 16:16
  • @AasimAzam Try removing the other two lines. Are you sure you got the IconIndex number right, with the - beforehand? More info here: msdn.microsoft.com/en-us/library/windows/desktop/… – paradroid Nov 7 '16 at 9:04
  • I did one folder manually by right clicking and changing folder icon and then copying the resulting desktop.ini file with the appropriate changes in another folder. Does the icon dll need to be in the c drive or can it be in d drive? – Aasim Azam Nov 7 '16 at 12:21
  • @AasimAzam It can be anywhere, but it is better to keep it on C: and use %SystemRoot% instead of C: in the path (in case the system drive is not C:), as then other machines will see the same icon when using network drives (as long as the other machines also have the .dll file in the same location). You could alternatively put the file on a network drive, but the icon won't show up as fast. – paradroid Nov 7 '16 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.