Replace 'Date' with 'Date Modified'

Page 3 of 3 FirstFirst 123

  1. Posts : 478
    Windows 10
    Thread Starter
       #21

    Hi Keith,

    Brilliant, you're a star, thanks a bunch!

    That worked perfectly as far as I can tell after a few Saves from various apps.

    --------------------

    BTW, your 'Yes' at the start of your last post puzzled me. I have found no way to achieve this with the UI itself. I had, of course, used the familiar 'Apply to folder' facility to the folders concerned and they open in File Explorer as specified, with Date Modified instead of Date. But when using Save As, from any app, those folders never got displayed according to the template.

    --------------------

    Before using your PS script I studied the keys in the registry. I was astonished at the large number (54) of entries under HKLM (now also under HKCU):

    Replace 'Date' with 'Date Modified'-foldertypes-largenumber.jpg

    Surely there cannot be that many 'types', however that may be defined? Maybe it's the result of my many ineffective attempts to achieve this in the past? How many entries do you have?

    Terry, East Grinstead, UK
      My Computer


  2. Posts : 989
    Microsoft Windows 10 Home
       #22

    You're welcome. Happy to help.

    I misunderstood the question. There is no way to apply this level of customization via the UI.

    54? I have 55! LOL. You didn't create any of those -- they're all there on install and normally not modified. Here's some more PowerShell:

    List the FolderTypes:
    Code:
    gci HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes | select PSChildName, @{L='Name'; E={$_.GetValue('CanonicalName')}}
    Count them:
    Code:
    (gci HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes).Count
    Keith
      My Computer


  3. Posts : 478
    Windows 10
    Thread Starter
       #23

    Thanks Keith. Powerful stuff, that PS!
      My Computer


  4. Posts : 478
    Windows 10
    Thread Starter
       #24

    Keith: Just occasionally (it's happened three times so far in maybe 50 saves) I get what seems like a new type - the 'hybrid' shown here:

    Replace 'Date' with 'Date Modified'-foldertypeshybrid.jpg

    Details is specified (as required), but unlike the great majority of Save As operations this one also shows the large icon.

    I'll try to detect a pattern, but it's difficult given its rarity.
      My Computer


  5. Posts : 989
    Microsoft Windows 10 Home
       #25

    Did this happen prior to our edits? Is it only happening in the older-style dialogs? Is it only appearing in folders using a 'Pictures' template?

    Keith
      My Computer


  6. Posts : 478
    Windows 10
    Thread Starter
       #26

    Away from PC for rest of this evening. I’ll get back to you tomorrow. I suspect that, unlike the bulk, those were being saved to folders not previously set up with Detail view.
      My Computer


  7. Posts : 989
    Microsoft Windows 10 Home
       #27

    My guess is it's accessing a template that was originally set to a large or extra-large icon view (like PIcturesSearchResults). These templates have an 'IconSize' value. While the newer dialogs & Explorer seem to ignore this value when the view mode is set to 'Details', I'm thinking maybe the older style dialog is being more literal and trying to honor both settings.

    Keith
      My Computer


  8. Posts : 478
    Windows 10
    Thread Starter
       #28

    That sounds very likely. They were saves from my text editor to sub-folders typically containing a mixture of file types. Including TXT and JPG and MP4. I occasionally use Extra Large, although don't recall ever setting that with Apply to Folders.
    I've now set their parent folder to Detail view and so far had no further occurrences.

    Terry
      My Computer


  9. Posts : 989
    Microsoft Windows 10 Home
       #29

    Here's a little more code to remove the 'IconSize' value from your templates. I'm going to add code to my script ifle as well that will delete the value if templates are set to a type other than icons & create it if the templates are being set to icons.
    Code:
    $TVs = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\*\TopViews\*'
    get-childitem $TVs | ?{ $_.GetValueNames() -ccontains 'IconSize}'} |
        %{$key2edit = (get-item $_.PSParentPath).OpenSubKey($_.PSChildName, $True)
             $key2edit.DeleteValue('IconSize') 
             $key2edit.Close()
         }
    Keith
      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 14:05.
Find Us




Windows 10 Forums