summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.gitattributes1
-rw-r--r--reset_explorer_settings.bat21
2 files changed, 22 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..69b47b5
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+*.bat text eol=crlf
diff --git a/reset_explorer_settings.bat b/reset_explorer_settings.bat
new file mode 100644
index 0000000..4e9ede2
--- /dev/null
+++ b/reset_explorer_settings.bat
@@ -0,0 +1,21 @@
+taskkill /f /im explorer.exe
+
+reg delete "HKCU\SOFTWARE\Microsoft\Windows\Shell\Bags" /f
+reg delete "HKCU\SOFTWARE\Microsoft\Windows\Shell\BagMRU" /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\Bags" /f
+reg delete "HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /f
+
+reg add "HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v FolderType /t REG_SZ /d NotSpecified /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
+
+reg delete "HKCU\SOFTWARE\Microsoft\Windows Photo Viewer\Viewer" /va /f
+
+reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Modules\GlobalSettings\Sizer" /f
+
+start explorer.exe