I have a large music collection (about 15,000 songs) and I like to watch my music folders thumbnails. Windows has a nice feature that if there's a folder.jpg file inside the folder the folder's thumbnails shows that image.
That is, at least, the default. Sometimes, for some unknown reason, the folder's properties change and the thumbnail doesn't show your beloved picture.
Of course, you can right click the folder, choose properties, then customize, change icon and restore defaults. But what if you have some dozens of folders to fix?
I've noticed that for some of the broken folders has a desktop.ini file in them and deleting the file restore the default behavior. Some of the broken folder didn't have this file though, but copying a desktop.ini file to them and then deleting it also restored them to normal.
Hence, the following script iterate all the subfolders of the folder the script was executed from, copies a desktop.ini file (which you should have on the same folder the script lies in) to them and then deletes it.
Enjoy.
download
No comments:
Post a Comment