How to apply view settings of library to subfolders?

Page 2 of 2 FirstFirst 12

  1. Posts : 989
    Microsoft Windows 10 Home
       #11

    {5c4f28b5-f869-4e84-8e60-f11db97c5cc7} is the ID for the Generic folder type, not a Library or LIbraryFolder. The code I provided isn't designed to delete any non-Library views.

    Keith
      My Computer


  2. Posts : 989
    Microsoft Windows 10 Home
       #12

    Hope you're subscribed to this thread. Haven't had time to work on the Library views, but thinking back to your original post, you mentioned you like libraries for the sake of a view sorting on date-modified, descending, with folders listed before files, correct?

    You can obtain this sort in any file folder, detail view, by first clicking the 'Date Modified' header to sort by date, and then Shift+click the 'Name' column header. This will give you your preferred view.

    Hope that helps. I'll dig into the Library views when I get the time.

    Keith
      My Computer


  3. Posts : 34
    windows 10
    Thread Starter
       #13

    when I enable this view for a folder, it will be remembered ? and if I apply it to other folders, they will inherit this sorting too?
      My Computer


  4. Posts : 989
    Microsoft Windows 10 Home
       #14

    Yes. View should be saved and 'Apply to folders' will make it the template for all folders of that type.

    Keith
      My Computer


  5. Posts : 34
    windows 10
    Thread Starter
       #15

    KeithM said:
    Yes. View should be saved and 'Apply to folders' will make it the template for all folders of that type.

    Keith
    well okay, I resetted once more all the views and after setting any custom view, I rebooted. THis time it seems that the view for Folders are kept across any reboot, even for USB keys never inserted before....


    I resintalled windows for another issue and tried your way with the folders, isntead of tweaking the library. However, I have the same problem : the subfolders of the folder DOcument do not inherit the default view.

    So in details, I do
    Reset_Folder_View_Settings_of_All_Folders_to_Default.bat
    then
    All_Folders_Use_Documents_Folder_Template(1).bat
    then I go to a random folder and create my personal view
    then
    'Apply to folders'
    then i go to the folder Documents and click ''date'', then shift+click ''name''

    that works at least until I reboot, but after the reboot, I get the subfolders to display the default view. At least the folder Pictures is displayed as folder-document, instead of Pictures, but it is the default view.

    For the folder Documents, the shit+click on Name is forgotten. The view goes back to my personal view of ordering by name only. For the folder Documents, I prefer date+ name, but for generic folder I prefer Name only.

    There is also the problem of the USB keys, which do not apply my personal view. I have to click 'Apply to folders' all the time is I want to the USB keys to be displayed like I like.


    - - - Updated - - -

    LoL, the views are no longer applied to folders, like on program files. I hate w10 so so much.
      My Computer


  6. Posts : 989
    Microsoft Windows 10 Home
       #16

    Weird. Can you post the output from this PowerShell:
    Code:
    (gi 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults').GetValueNames()
    Keith
      My Computer


  7. Posts : 34
    windows 10
    Thread Starter
       #17

    KeithM said:
    Weird. Can you post the output from this PowerShell:
    Code:
    (gi 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults').GetValueNames()
    Keith
    there is an error returned "«HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults »"is not defined

    PS C:\Windows\system32> (gi 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults').GetValueNames()
    gi : Impossible de trouver le chemin d'accès «HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults
    », car il n'existe pas.
    Au caractère Ligne:1 : 2
    + (gi 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (HKCU:\Software\...treams\Defaults:String) [Get-Item], ItemNotFoundExcep
    tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

    Impossible d’appeler une méthode dans une expression Null.
    Au caractère Ligne:1 : 1
    + (gi 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation : (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

    PS C:\Windows\system32>

    - - - Updated - - -

    After resetting several times the theme by selecting the default theme for w10, and resetting the view with
    Reset_Folder_View_Settings_of_All_Folders_to_Default.bat
    Reset_Notification_Area_Icons_Cache.bat
    then applying
    All_Folders_Use_General_Items_Folder_Template(1).bat
    and applyiing the size I want with
    System Font Size Changer - Increase Text Size in Windows 10

    i get

    and this time the view is applied....

    PS C:\Windows\system32> (gi 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults').GetValueNames()
    {5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}
    PS C:\Windows\system32>

    and in regedit
    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults]
    "{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}"=hex:1c,00,00,00,00,00,00,00,00,00,00,\
    00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,f1,f1,f1,f1,14,00,00,00,\
    00,00,00,00,00,00,00,00,00,00,00,00,18,03,00,00,14,03,00,00,31,53,50,53,05,\
    d5,cd,d5,9c,2e,1b,10,93,97,08,00,2b,2c,f9,ae,83,00,00,00,22,00,00,00,00,47,\
    00,72,00,6f,00,75,00,70,00,42,00,79,00,4b,00,65,00,79,00,3a,00,46,00,4d,00,\
    54,00,49,00,44,00,00,00,08,00,00,00,4e,00,00,00,7b,00,30,00,30,00,30,00,30,\
    00,30,00,30,00,30,00,30,00,2d,00,30,00,30,00,30,00,30,00,2d,00,30,00,30,00,\
    30,00,30,00,2d,00,30,00,30,00,30,00,30,00,2d,00,30,00,30,00,30,00,30,00,30,\
    00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,7d,00,00,00,00,00,33,00,00,00,\
    22,00,00,00,00,47,00,72,00,6f,00,75,00,70,00,42,00,79,00,44,00,69,00,72,00,\
    65,00,63,00,74,00,69,00,6f,00,6e,00,00,00,13,00,00,00,01,00,00,00,5b,00,00,\
    00,0a,00,00,00,00,53,00,6f,00,72,00,74,00,00,00,42,00,00,00,1e,00,00,00,70,\
    00,72,00,6f,00,70,00,34,00,32,00,39,00,34,00,39,00,36,00,37,00,32,00,39,00,\
    35,00,00,00,00,00,1c,00,00,00,01,00,00,00,30,f1,25,b7,ef,47,1a,10,a5,f1,02,\
    60,8c,9e,eb,ac,0a,00,00,00,01,00,00,00,25,00,00,00,14,00,00,00,00,47,00,72,\
    00,6f,00,75,00,70,00,56,00,69,00,65,00,77,00,00,00,0b,00,00,00,00,00,00,00,\
    1b,00,00,00,0a,00,00,00,00,4d,00,6f,00,64,00,65,00,00,00,13,00,00,00,04,00,\
    00,00,23,00,00,00,12,00,00,00,00,49,00,63,00,6f,00,6e,00,53,00,69,00,7a,00,\
    65,00,00,00,13,00,00,00,10,00,00,00,05,01,00,00,10,00,00,00,00,43,00,6f,00,\
    6c,00,49,00,6e,00,66,00,6f,00,00,00,42,00,00,00,1e,00,00,00,70,00,72,00,6f,\
    00,70,00,34,00,32,00,39,00,34,00,39,00,36,00,37,00,32,00,39,00,35,00,00,00,\
    00,00,c0,00,00,00,fd,df,df,fd,10,00,00,00,00,00,00,00,00,00,00,00,07,00,00,\
    00,18,00,00,00,30,f1,25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,\
    27,03,00,00,30,f1,25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0c,00,00,00,8f,\
    00,00,00,30,f1,25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0e,00,00,00,8b,00,\
    00,00,30,f1,25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0d,00,00,00,5b,00,00,\
    00,30,f1,25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,04,00,00,00,e8,00,00,00,\
    8f,04,44,64,8b,4c,d1,11,8b,70,08,00,36,b1,1a,03,0d,00,00,00,71,00,00,00,90,\
    04,44,64,8b,4c,d1,11,8b,70,08,00,36,b1,1a,03,03,00,00,00,5a,00,00,00,2f,00,\
    00,00,1e,00,00,00,00,47,00,72,00,6f,00,75,00,70,00,42,00,79,00,4b,00,65,00,\
    79,00,3a,00,50,00,49,00,44,00,00,00,13,00,00,00,00,00,00,00,1f,00,00,00,0e,\
    00,00,00,00,46,00,46,00,6c,00,61,00,67,00,73,00,00,00,13,00,00,00,11,00,20,\
    49,31,00,00,00,20,00,00,00,00,4c,00,6f,00,67,00,69,00,63,00,61,00,6c,00,56,\
    00,69,00,65,00,77,00,4d,00,6f,00,64,00,65,00,00,00,13,00,00,00,01,00,00,00,\
    00,00,00,00,00,00,00,00
      My Computer


  8. Posts : 34
    windows 10
    Thread Starter
       #18

    windows keep resetting my view for subfolders, ex subflders of Documents, so this time I tried this one
    Disable Automatic Folder Type Discovery in Windows 10
    after i reset any personal view

    the setting is erased after I create again my personal view.

    I think the only solution to this is to export the key
    HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell

    after a personal view is created, and create a task to apply this .reg at boot, resume from sleep and other triggers...

    another trick

    REG ADD "HKEY_Current_User\software\microsoft\windows\currentversion\policies\explorer" /v "NoSaveSettings" /t REG_SZ /d "0" /f

    REG ADD "HKEY_Local_Machine\software\microsoft\windows\currentversion\policies\explorer" /v "NoSaveSettings" /t REG_SZ /d "0" /f


    and

    HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{42aedc87-2188-41fd-b9a3-0c966feabec1}\InProcServer32\

    HKEY_CLASSES_ROOT\CLSID\{42aedc87-2188-41fd-b9a3-0c966feabec1}\InProcServer32\



    3.Double click on (Default) string and change the value from “%SystemRoot%\SysWow64\shell32.dll” to “%SystemRoot%\system32\windows.storage.dll” in above destinations.
      My Computer


  9. Posts : 15
    Windows 10
       #19

    KeithM said:
    This is turning out to be trickier than I thought. The script is modifying all the values I thought needed to be modified. But Music & Picture Libraries aren't showing the right columns. Documents, Generic, and Video Libraries are. Here's the code as it stands, if you want to try it. Sign out and sign back in after running. Also remember that any folder you've already viewed will have its individual view settings saved and won't use the template. I'm going to keep investigating, but time is limited during the week.
    In the CustomColumns list, the values in parentheses specify column width. So it may take some trial & error to find the column widths you like.
    Code:
    $CustomCplumns    = @(
    'prop:0(34)System.ItemNameDisplay'
    '0(10)System.Size'
    '0(15)System.DateModified'
    '0(15)System.ItemTypeText'
    '0(10)System.FileAttributes'
    '0(10)System.Image.Dimensions'
    '0(10)System.Media.Duration'
    ) -join ';'
    $SortByList       = 'prop:-System.DateModified;System.ItemNameDisplay'
    $HKLM_FolderTypes = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes'
    $HKCU_FolderTypes = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes'
    Remove-Item $HKCU_FOlderTYpes -recurse
    copy-item $HKLM_FolderTypes "$(split-path $HKCU_FolderTypes)" -Recurse
    gci $HKCU_FolderTypes -Exclude '{524ddb2b-2a4f-43b8-b8fe-e91ef9d8ba69}' |
         ?{(gp $_.PSPath).CanonicalName -match 'Library$'} |
          %{         $FolderTV = (gi "$($_.PSPath)\TopViews").OpenSubKey('{82ba0782-5b7a-4569-b5d7-ec83085f08cc}', $True)
             $ColumnList = $FolderTV.GetValue('ColumnList')
             $ColumnList = $ColumnLIst -replace '^.+?(?=;1)', $CustomCplumns
             $FolderTV.SetValue('ColumnList', $ColumnList)
             $FolderTV.SetValue('SortByList', $SortByList)
             $FolderTV.Close()
          }
    Excuse me, but did you ever finish this? Unfortunately, Music and Picture views being applied to library subfolders is specifically what I'm looking for, so they being the only two types not working really sucks.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:20.
Find Us




Windows 10 Forums