8

The documentation at the Windows Dev Center is fairly limited compared not only to third party sites, but to even what I can create by changing folder settings and opening up the resulting desktop.ini file. The problem with third party sites is that those at the top of Google's index often do not state what system is covered (XP has several useful parameters removed in Vista/7/8), contradict each other when compared, and often do not produce the desired behavior when tested.

As background, I am working with a removable drive and I would like the folder icons, folder templates, icon sizes, and any other atheistic elements to be held constant in Windows Explorer, independent of the (Windows) machine I hook it up to. Setting folder icons is easy and the folder templates I found through testing as described above. I have not found a solution for icon size or folder background. Those may not exist in Windows 7, but I feel the lack of official documentation leaves room for doubt.

I'd also be interested in Windows 10 documentation, but I assume that's still in flux even if a document is available.

raithyn
  • 328

2 Answers2

5

I really don't think there is an all in one for this, I'm searching about this too, so far I found: https://hwiegman.home.xs4all.nl/desktopini.html

From this one not everything works: https://msdn.microsoft.com/en-us/library/windows/desktop/aa965725(v=vs.85).aspx

In my case i'm trying to create "tags" for music folders based on the audio files, I will have to create an script yet to export the data from the first audio file from inside each folder to a file called Desktop.ini that should look like this:

[{F29F85E0-4FF9-1068-AB91-08002B27B3D9}]
Prop2 = 31,Title
Prop3 = 31,Subject
Prop4 = 31,Author
Prop5 = 31,Keywords(Tags)
Prop6 = 31,Comment
[{56A3372E-CE9C-11D2-9F0E-006097C686F6}]
Prop4 = 31,Album Name Test
Prop5 = 31,2000
Prop11 = 31,Pop

In Schema doc you can find the music tag key and at the end you will find a /"number" which is equal to Prop"number" right after the key.

What I have not figured out yet:

Set folder size, so windows doesn't have to calculate it everytime, which is extremely dumb. This may not be possible.

Also haven't tested the keys that end with words like:

D5CDD505-2E9C-101B-9397-08002B2CF9AE/DocTitlePrefix

Don't know yet why is there that number 31 before all data, might be the data length for index.

This also mostly works:

https://msdn.microsoft.com/en-us/library/windows/desktop/dd561977(v=vs.85).aspx

Icons can't be resized, Windows auto sizes to the view mode of the parent directory as you view it.

For icon and folder type you can use this basic mode:

[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,137
[ViewState]
FolderType=Music

If you want a personalized icon you can either use an icon inside of that folder or use a relative path that must end like this:

folder.ico,0
folder.ico,1 #### for the second icon in a multi icon file
0

What I wanted—setting folder background images, default icon size, etc.—is not baked-in with Windows 7 or 10. Third-party applications can make these changes, but none of the ones I tested at the time could carry changes over to a machine where they weren't installed.

Ultimately, I created a custom launcher.

raithyn
  • 328