Reset folder view for all folders in Windows 10
Reset folder view for all folders in Windows 10
Windows has allowed us to customize the view for individual
folders for quite a while. Even more, Windows and File Explorer remember
these changes but if you’ve done too many of them you might want to
reset folder view for all folders in Windows 10.
For any folder, File Explorer can remember the customization you made regarding the view mode, grouping, and sorting. While it’s easy to reset the folder view for a specific folder, there’s no such option that can be applied globally.
To start, press Win + R to open the Run dialog. Type regedit in the text box and hit enter. This will open the Registry Editor.
Then, navigate to this registry key:
Under Shell, right-click the Bags subkey and select Delete from the context menu. Do the same for the BagMRU subkey.
Now all you need to do is restart Explorer. All the folders will have returned back to the default view.
If you’d like to reset folder view for all folders in Windows 10
without editing the Registry yourself, that’s also possible. You will
need to create a batch file that allows you to quickly reset the folder
view. Even more, the batch file will export the Bags and BagMRU subkeys
so you can restore the old folder view if you need to.
Create a new plain text file and copy paste the code below into it:
The batch file will also backup your original folder view settings in two .reg files and save them on your desktop. To restore the initial folder view double-click the files and approve the Registry merge.
Transported
For any folder, File Explorer can remember the customization you made regarding the view mode, grouping, and sorting. While it’s easy to reset the folder view for a specific folder, there’s no such option that can be applied globally.
How to reset folder view for all folders in Windows 10
Nevertheless, using a Registry tweak it is possible to reset folder view for all folders in Windows 10. In fact, this method also works on Windows 7 and 8.To start, press Win + R to open the Run dialog. Type regedit in the text box and hit enter. This will open the Registry Editor.
Then, navigate to this registry key:
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell
Now all you need to do is restart Explorer. All the folders will have returned back to the default view.
Create a new plain text file and copy paste the code below into it:
Then, save the file with the “.cmd” extension. Unpack it and double-click it. You’ll be asked to confirm the folder view reset. To do this, simply type “y” without quotes.@echo off
echo This batch file will reset folder view settings for all folders and restart Explorer automatically.
echo Folder view settings will be backed up to the Desktop before being deleted.
set /p "answer=Press [y] to continue"
IF /I NOT %answer%==y IF /I NOT %answer%==Y GOTO cancel
set BAGS="HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags"
set BAGMRU="HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU"
set FILENAME="%date:~10,4%-%date:~4,2%-%date:~7,2%-%time::=_%.reg"
rem Backup of current views
reg export %BAGS% "%userprofile%\Desktop\bags-%FILENAME%"
reg export %BAGMRU% "%userprofile%\Desktop\bagmru-%FILENAME%"
timeout /t 2 /nobreak > NUL
reg delete %BAGS% /f
reg delete %BAGMRU% /f
taskkill /im explorer.exe /f
timeout /t 2 /nobreak > NUL
start "" explorer.exe
echo Done
goto end
:cancel
echo The operation was canceled by the user
:end
pause
The batch file will also backup your original folder view settings in two .reg files and save them on your desktop. To restore the initial folder view double-click the files and approve the Registry merge.
this topic Copy
Transported
Aucun commentaire: