
Since this is something that could easily happen again, I solved this problem at its source just by changing this D:\Folder Icons\Folder_A.

Well, it appears that from time to time the letter labeling the drive suddenly changes (it had changed from D: to F:) so all of the desktop.ini files were referring to the correct icons and locations, but with the D: and not the F. In my original post I forgot to mention that all of this is located in an external hard drive. Well, that's not a problem at all since I have just a small amount of subfolders and I can do them manually.Īlso, I figured out why my old icons got suddenly deleted. It will just put the icons of the folders directly inside folder_0 and not their subfolders. Unfortunately, I cannot make it work with the subfolders, even using the command SetFolderIcons.bat /s "C:\.\.\Desktop\test\folder_0" Now it works like a charm! Thank you again! :))) In short, your script requires to be run as administrator (well that's understandable but I'm not so good with computers so I didn't figure it out at the beginning lol) and it also requires the folder icons folder to be inside folder_0. Thank you, thank you so much for your answer and for the time you've taken to write it down!Īt first it wasn't working but after some troubleshooting I got it done. if a folder path is not specified, the current directory will be used. The Change Icon window shows some basic icons, but click the Browse button to find your own icon files. In the Edit File Type window, click the button to the right of the Default Icon text field. If the current directory is at D:\, below command line will process all subfolders in the whole D: drive. Right click extension whose icon you want to change and then select Edit Selected File Type. To create a new batch processing function, click Create in the Batch.

If you want it to process d:\my files and all of its subfolders, execute it as: setfoldericons /s "d:\my files" You can also click the folder icon next to the box to browse and select the function. if the folder icons folder it at d:\my files\folder icons, execute it as: setfoldericons "d:\my files" If not exist "%~1\folder icons\" goto :eofįor %%A in ("%~1\folder icons\*.ico") do ( Must be the first parameter if used.Įcho Folder "%~1" is not found or invalid. Use test folder first, to see if it does like you wanted. Note: it will rewrite and replace the desktop.ini file in a folder as long as that folder has a matching icon file with the same name in the folder icons sibling folder. Save it as SetFolderIcons.bat or SetFolderIcons.cmd.
