WinSetView command line / batch mode #112
-
TLDR;
Context
Example Structure / Requirements
Is this possible?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
WinSetView does not actually deal with individual folders. It just sets your preferred defaults in the registry for each folder type and then clears all saved views. Explorer applies the view when you first open a folder. For the folder type, Explorer automatically sets the type based on the majority content. Windows 11 is very aggressive about doing that. So much so that you cannot override what it picks. Windows 10 sets the folder type based on content until you manually set it and then it backs off (which is the way it should work). So, in theory, you shouldn't have to set the folder type. It should set automatically when you add content, unless you have enabled the option "Make all folders Generic". Since Microsoft provides no API for setting the folder type, the only option to script it is to set the folder type with a hidden desktop.ini file. I think I could write you a script that will traverse your folder structure looking for folders named Audio, Images, and Video and set the folder types using hidden deskop.ini files. This method will only work on NTFS volumes that mount as "Local Disk" (like C: drive), so hopefully that's what we're working with. |
Beta Was this translation helpful? Give feedback.
WinSetView does not actually deal with individual folders. It just sets your preferred defaults in the registry for each folder type and then clears all saved views. Explorer applies the view when you first open a folder.
For the folder type, Explorer automatically sets the type based on the majority content. Windows 11 is very aggressive about doing that. So much so that you cannot override what it picks. Windows 10 sets the folder type based on content until you manually set it and then it backs off (which is the way it should work). So, in theory, you shouldn't have to set the folder type. It should set automatically when you add content, unless you have enabled the option "Make all fo…