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

19 Mar 2013   #40
Brink

64-bit Windows 10 Pro
 
 

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

64-bit Windows 10 Pro
 
 

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

64-bit Windows 10 Pro
 
 

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

64-bit Windows 10 Pro
 
 

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
-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

64-bit Windows 10 Pro
 
 

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, 99 views)
My System SpecsSystem Spec
Comment

 Folder Template - Default




Tutorial Tools




Similar help and support threads
Windows 7 Tutorial Category
Permission denying when creating a template to be use as default
Hello all, I'm doing this method for creating a custom template to be used as default workbook: First I create a new workbook and modify it based on my own likes. Then I save it (Save as) as Excel Template in below path and then press the Save button. But got this message. I'm admin of the PC...
Microsoft Office
Can I create a folder template with folders inside?
Hi, I've searched for this topic but can't find it anywhere on the forum, I hope I've not missed it. Is it possible to create a template for a folder which contains three other folders inside it? I want to create a folder called 'Work' which contains three other folders called 'links',...
General Discussion
How can I create a custom folder template in Windows 7
How can I create a custom folder template in Windows 7. For instance I need to see bitrate, album year, and genre in my music folders and it's sooo frustrating to have to open this information everytime I enter a folder. It sould just be there, how can I make this happen.
Customization
Create new folder template
Is it possible to create a new folder template? As a working musician, the standard music template is not functional for what I do. However, I don't want to change the standard music template as it IS functional for pre-recorded music, which I also have on this machine. The other standard...
Customization
Problem with changing folder template
As Windows7 has a feature "Automatic Folder Type Discovery", it will automatically change the folder template of a folder to match the file type of the last file added or saved in the folder. Of course, you can change the folder template to one of General Items, Documents, Pictures, Music and...
General Discussion
Folder Template - Change
How to Change a Folder Template in Windows 7 This will show you how to change a folder template in Windows Explorer to have it optimized as either a General Items, Documents, Pictures, Music, or Videos folder in Windows 7. EXAMPLE: General Items, Documents, Pictures, Music, and Videos...
Tutorials


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 08:41.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App