Can I Reset Default View for All Folders?

Page 2 of 3 FirstFirst 123 LastLast
  1. KeithM's Avatar
    Posts : 803
    Microsoft Windows 10 Home
       #11

    jmrathbun said:
    Wow! I'm too old to learn how to do what you're suggesting, or to even guess if it's a good idea.
    Have you ever merged a .reg file?
      My Computer


  2. Posts : 31
    Windows 7 Professional --> Windows 10
    Thread Starter
       #12

    .reg = ?


    Nope! No clue on programming beyond BASIC and PERL. When I started programming, it was in Fortran on an IBM-360 CADET ("Can't Add, Doesn't Even Try"). We punched our commands onto paper cards, carried them to the card-reader, inserted a compiled deck that programmed the beast (which took up the entire basement of the Physics building and had its own A/C) to compile our program... unless there was an error, in which case the faulty card would be indicated by number; in that case, you could re-punch that particular card and try again. In case of success, the machine would punch out your "object deck" which you could then carry from the card-printer to the card-reader and try actually running your program. That thing had a lot less computing power than a modern... well, think of the dumbest system you can and then divide by 100. So I'm not keen to put much more time into learning how to get around WinX's foibles!
      My Computer

  3. KeithM's Avatar
    Posts : 803
    Microsoft Windows 10 Home
       #13

    jmrathbun said:
    Nope! No clue on programming beyond BASIC and PERL. When I started programming, it was in Fortran on an IBM-360 CADET ("Can't Add, Doesn't Even Try"). We punched our commands onto paper cards, carried them to the card-reader, inserted a compiled deck that programmed the beast (which took up the entire basement of the Physics building and had its own A/C) to compile our program... unless there was an error, in which case the faulty card would be indicated by number; in that case, you could re-punch that particular card and try again. In case of success, the machine would punch out your "object deck" which you could then carry from the card-printer to the card-reader and try actually running your program. That thing had a lot less computing power than a modern... well, think of the dumbest system you can and then divide by 100. So I'm not keen to put much more time into learning how to get around WinX's foibles!
    We had thermal paper terminals at my high school. But you're obviously on a PC now, found your way to the internet & psted here -- so don't sell yourself short!

    You've right-clicked on a text file & seen "Open" & "Edit", right? Well, .reg files have an otption to merge -- which adds (or subtracts ) information from the regisry.

    If you can copy & paste text, you can copy the code I posted into a PowerShell console & press <Enter>.

    If you've ever typed "dir" at a Command prompt, you have no reason to fear PowerShell. In fact, a good start would be to open PowerShell & type "dir".

    I know there's a trust issue with code you can't read, but I have a good reputation here, as well as at SuperUser and the Microsoft forums. I've been poking & prodding folder views since XP ---more than any sane person ever would! And inrelation to the other post here htat I mentioned, My testing has revealed some new tricks. I'm really psyched to share.
      My Computer


  4. Posts : 31
    Windows 7 Professional --> Windows 10
    Thread Starter
       #14

    Thanks! I had never used Windows PowerShell -- just the old-style Command Prompt. This doesn't seem too different except for the color. Anyhow, here's my output from your code (I couldn't find a way to copy to clipboard). Where do we go from there?

    Can I Reset Default View for All Folders?-cfg.png
      My Computer

  5. KeithM's Avatar
    Posts : 803
    Microsoft Windows 10 Home
       #15

    Just press enter & it will list the FolderTYpes that have a custom view set. This is to check if you've covered all the FolderTypes with Apply to Folders. You can keep hte window open and check your progress by just pressing <Up Arrow> and then <Enter>.

    Also run the small bit I post earlier to check if you've maxed out on saved views, that's critical.
      My Computer


  6. Posts : 31
    Windows 7 Professional --> Windows 10
    Thread Starter
       #16

    It says I have no customized templates.
      My Computer

  7. KeithM's Avatar
    Posts : 803
    Microsoft Windows 10 Home
       #17

    And you've been trying to use Apply to Folders, right?

    Can I Reset Default View for All Folders?-apply-folders.png

    If you have, and it's not creating those templates, you've probalbly hit the max of 5,000. Copy & paste & then press Enter.

    Code:
    ((gp "HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU").Nodeslots).count
    And if it's at 5,000 ( which I'm guessing it is as you mentioned that This PC doesn't remember the views you set for it ), you have to delete all saved views by deleting the registry keys that hold those views. You can do it manually, through regedit.exe, or with the code snippet below:
    Code:
    sl 'HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell'
    'BagMRU', 'Bags' | Remove-Item -Recurse
    gps explorer | spps
    Log off & back on for good measure after doing so. Then go back to opening folders of the various types listed earlier, seeting their view as you like, and executing Apply to Folders and running the big block of code to check your progress.

    Don't worry, I'll stick with you, though my replies may not always be immediate. I will get you to a place where you're happy.
    Last edited by KeithM; 3 Weeks Ago at 12:50. Reason: Missing pipe element in code
      My Computer

  8. KeithM's Avatar
    Posts : 803
    Microsoft Windows 10 Home
       #18

    When you find your way back here, here are .reg files to set Common Dialogs & SearchResults to Medium Icons.


      My Computer


  9. Posts : 31
    Windows 7 Professional --> Windows 10
    Thread Starter
       #19

    Thanks...


    Looks like you put a lot of work into this!

    I tried clicking on it, and my system treated it like an executable. After it apparently ran, I couldn't see any difference in the "View" settings from before. By default, most folders still display the "Details" view. Some I have previously set to "Medium Icons" and they remained as I had left them. Do I need to run this in the PowerShell window? If so, do I run each adjustment individually or can I run them as a batch somehow? There's stuff at the top that doesn't look runnable (probably comments) but also the title which doesn't appear commented.
      My Computer

  10. KeithM's Avatar
    Posts : 803
    Microsoft Windows 10 Home
       #20

    From what I read here, you still haven't run the code to clear saved views. I got it down to one long line that can be pasted into a Run dialog. Copy, psaate, press Enter :

    • Code:
      Powershell -C "('BagMRU', 'Bags').ForEach({Begin{sl 'HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell'}Process{ ri $_ -Recurse }End{gps explorer | spps}})"



    Can I Reset Default View for All Folders?-screenshot-955-.png

    You should see a diffference immediately in folders remembering views. Then merege the .reg files to set Common Dialogs & SearchResults. The soomer templaes are applied, for dialogs & Search by the .reg files & for folders by you you setting Apply to Folders,on the various types, the more consistency you will see!

    jmrathbun said:
    Looks like you put a lot of work into this!
    I put a lot of thought and research into it -- code did the work -- I just pull the values from the registry to get the names and then create then entries.
    jmrathbun said:
    I tried clicking on it, and my system treated it like an executable.
    I don't think so. I think you just downloaded the file. A .reg file will not merge without you accepting a confirmation dialog. Check your Downloads folder. You're looking for a recent file that starts with the word "Medium".


    Can I Reset Default View for All Folders?-screenshot-950-.png

    You might have to broaden your search to your other user follders as well. But when you find the file, the context menu with be similar to this:

    Can I Reset Default View for All Folders?-screenshot-951-.png


    After you click on Merge, you'll receive this warning:


    **Edit** Since you downloaded the fiile, you will probably get an additional warning avout "...content from unkown sources..." or something to that effect.



    Can I Reset Default View for All Folders?-screenshot-952-.png

    And then you should see success confirmation:

    Can I Reset Default View for All Folders?-screenshot-953-.png


    jmrathbun said:
    After it apparently ran, I couldn't see any difference in the "View" settings from before. By default, most folders still display the "Details" view. Some I have previously set to "Medium Icons" and they remained as I had left them. Do I need to run this in the PowerShell window?
    I copied this to the top so you wold run it first. I hoe that worked out.

    The PowerShell bit to clear saved views needs to be run. I've tried to make it easier --- you can copy & paste the following into a Run dialog. The dialog can be launched by pressing +R


    • Code:
      Powershell -C "('BagMRU', 'Bags').ForEach({Begin{sl 'HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell'}Process{ ri $_ -Recurse }End{gps explorer | spps}})"


    jmrathbun said:
    If so, do I run each adjustment individually or can I run them as a batch somehow? There's stuff at the top that doesn't look runnable (probably comments) but also the title which doesn't appear commented.

    Hopefully, you've merged the .reg files and dialogs are behaving as desired. For consistency, which is what you seem to want, you should set all the various folders I listed earlier one by one, but remeber, each one is settng a template for a whoel type, even though some typses only apply to one folder! LOL.
    But if dialogs are behaiving, you can just set the Explorer vuews (Apply to Folders) as you run into them in your browsing.

    But asso, I did just start toying with a bit of code that will open the folder, pause while you set the vew & then set the template.vWhen you close the folder, the next one would open.

    But I also think I've figured out a clean way to copy the columns choices you set for folders to Libaries without killing the grouping by source location seen in the initail view of a Libary.

    So please work with what I've given you. and let me see what I can do.
      My Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  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 09:04.
Find Us




Windows 10 Forums