Folder Template - Default

Page 5 of 9 FirstFirst ... 34567 ... LastLast

  1. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #40

    No problem.

    I'm not sure why either Folder Template - Default (Restore_Default_Folder_Templates.bat) is the same as Folder View Settings - Reset All to Default (Windows_7_Reset_All_Folders_To_Default_Folder_Views.bat) is not resetting them for you.

    Something is interfering with the .bat on your system since they both reset all folder templates and views back to default.

    See if right clicking on the .bat and clicking on "Run as administrator" may help if you have some sort of permissions issue.
      My Computer


  2. Posts : 294
    Windows 7 Ultimate x64 SP1
       #41

    Are the commands for Folder Template - Default (Restore_Default_Folder_Templates.bat) and Folder View Settings - Reset All to Default (Windows_7_Reset_All_Folders_To_Default_Folder_Views.bat) supposed to be different?

    I downloaded both .bat files and took a look at the commands, the commands for both .bat files are identical.

    :: To reset all folders to default folder views
    Reg Delete "HKCU\Software\Microsoft\Windows\Shell\BagMRU" /F
    Reg Delete "HKCU\Software\Microsoft\Windows\Shell\Bags" /F

    Reg Delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags" /F
    Reg Delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /F

    Reg Delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /F
    Reg Delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags" /F

    Reg Delete "HKCU\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\Bags" /F
    Reg Delete "HKCU\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /F



    :: To kill and restart explorer
    taskkill /f /im explorer.exe
    start explorer.exe
      My Computer


  3. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #42

    No, they are supposed to be the same since they both will reset all folder views and templates back to default.

    Did you have any luck using "Run as administrator" on the .bat?
      My Computer


  4. Posts : 294
    Windows 7 Ultimate x64 SP1
       #43

    I tried "Run as administrator" and the results are the same. The "View" and "Sort by" are still remembered for each template.

    I'll try to explain to the best of my ability on what's going on.

    After I run the .bat file the only things that appear to have reset are window size and icon placement on my desktop.

    I have my Music Template set as follows, View -> List and Sort by -> Name. The default view setting for Music Template is View -> Details and Sort by -> Name

    I have my Pictures Template set as follows, View -> Extra large icons and Sort by -> Name. The default view setting for Picture Template is View -> Large icons and Sort by -> Type.

    I expected the .bat file to reset Folder view settings AND Template settings back to their original default. It seems the .bat is resetting the Folder view settings but not Template settings back to default.

    I also noticed the Note you have posted on Folder View Settings - Reset All to Default,

    The included folder view settings that will be set back to default will be all Group by, Sort by, Arrange by arrangement , Icon Size, or View arrangement settings. This will not reset any changes made to the folder templates back to default though.
    Now I'm really confused.

    I thought I was told that the .bat files DID reset folder templates back to default.
      My Computer


  5. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #44

    LOL, now you got me confused.

    I just tested it, and the .bat file does reset all folder views and templates back to default. :)
      My Computer


  6. Posts : 294
    Windows 7 Ultimate x64 SP1
       #45

    Maybe I should try manually deleting the reg keys?

    HKCU\Software\Microsoft\Windows\Shell\BagMRU
    HKCU\Software\Microsoft\Windows\Shell\Bags

    HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags
    HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU

    HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU"
    HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags"

    HKCU\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\Bags
    HKCU\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\BagMRU
      My Computer


  7. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #46

    Only if you are comfortable with working in the registry.

    You might consider creating a restore point before doing so. This way if you make a mistake by accident, you could just do a system restore with the restore point to undo it.
      My Computer


  8. Posts : 294
    Windows 7 Ultimate x64 SP1
       #47

    Ok, I'll do a system image just in case. Will report back the results.

    *edit*

    The following registry keys don't exist:

    HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags
    HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU

    HKCU\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\Bags
    HKCU\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\BagMRU
    Attached Thumbnails Attached Thumbnails Folder Template - Default-nolocalsettings.png   Folder Template - Default-noshellnoroam.png  
    Last edited by 0pTicaL; 20 Mar 2013 at 04:41.
      My Computer


  9. Posts : 294
    Windows 7 Ultimate x64 SP1
       #48

    I am pretty sure the .bat file does not reset Folder Templates (General, Documents, Music, Pictures & Videos) back to their default view and sort by settings, but I want to be 100% sure.

    I have a machine that is due for a client this Friday, so I decided to put everything together and load the OS. It's a AMD A10 Trinity build (not that the hardware matters) running on Windows 7 Home Premium x64 SP1 with all the latest updates and mobo drivers (drivers downloaded directly from OEM website).

    This is what I did step by step, I have 2 folders on my desktop. One folder contains mp3 files and the other .jpg files.

    The default Music Template settings are:

    View as Details
    Sort by Name

    I changed the View settings from Details to List. I then went into Folder Options -> View tab and clicked "Apply to Folders" so everything associated with Music will be in List view.

    The default Pictures Template settings are:

    View as Large Icons
    Sort by Name

    I changed the View settings from Large Icons to Extra Large Icons and Sort by Name to Sort by Type. I then went into Folder Options -> View tab and clicked "Apply to Folders" so everything associated with Pictures will be viewed in Extra Large Icons and sorted by Type.

    After that was set and done I went ahead and executed the .bat file (Windows_7_Reset_All_Folders_To_Default_Folder_Views.bat)

    After Explorer was killed and restarted I rebooted the machine just in case.
    After the machine was done rebooting I went and check my Music and Picture folders, their View and Sort by settings did not change, it did not reset to their default View and Sort by settings.

    I am now 100% certain the .bat files do not reset All Folder Templates back to their default View and Sort by settings.
      My Computer


  10. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #49

    OpTicaL,

    I don't know what to tell you other than that on every system and VM I use it on, that .bat resets all folder views and templates back to default.

    So far, you're the only one that it hasn't worked for.

    As a test, try this .bat file below. It can only be used in an administrator account, and has these entries added to the one above.

    Code:
    Reg Delete "HKCR\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /F
    Reg Delete "HKCR\Local Settings\Software\Microsoft\Windows\Shell\Bags" /F
     
    Reg Delete "HKLM\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /F
    Reg Delete "HKLM\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags" /F
    Folder Template - Default Attached Files
      My Computer


 
Page 5 of 9 FirstFirst ... 34567 ... LastLast

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

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