Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Folder Template - Default


08 Jul 2009   #39
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 
Folder Template - Default

How to Set a Default Folder Template for All Folders in Windows 7


...


My System SpecsSystem Spec
19 Mar 2013   #40
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 System SpecsSystem Spec
19 Mar 2013   #41
0pTicaL

Windows 7 Ultimate x64 SP1
 
 

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 System SpecsSystem Spec
19 Mar 2013   #42
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 System SpecsSystem Spec
20 Mar 2013   #43
0pTicaL

Windows 7 Ultimate x64 SP1
 
 

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,

Quote:
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 System SpecsSystem Spec
.


20 Mar 2013   #44
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 System SpecsSystem Spec
20 Mar 2013   #45
0pTicaL

Windows 7 Ultimate x64 SP1
 
 

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 System SpecsSystem Spec
20 Mar 2013   #46
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 System SpecsSystem Spec
20 Mar 2013   #47
0pTicaL

Windows 7 Ultimate x64 SP1
 
 

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
Folder Template - Default-noshellnoroam.png  
Attached Images
 
My System SpecsSystem Spec
20 Mar 2013   #48
0pTicaL

Windows 7 Ultimate x64 SP1
 
 

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 System SpecsSystem Spec
20 Mar 2013   #49
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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


Attached Files
File Type: bat Test_Reset_All_Folders_To_Default_Folder_Views.bat (1.3 KB, 28 views)
My System SpecsSystem Spec
Comment

 Folder Template - Default




Tutorial Tools



Similar help and support threads for2: Folder Template - Default
Windows 7 Tutorial Category
Word does not go back to default file location after creating Template Microsoft Office
Solved How can I create a custom folder template in Windows 7 Customization
Create new folder template Customization
Problem with changing folder template General Discussion
Solved Explorer not remembering folder type/template Customization
Folder Template - Change Tutorials
Where is Office 2010 Word Template Folder? Microsoft Office

Our Sites

Site Links

About Us

Find 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 09:45 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33