Board logo

标题: [注册表类] [分享]Win10批处理删除或恢复资源管理器的七个特殊文件夹 [打印本页]

作者: Batcher    时间: 2023-11-10 16:40     标题: [分享]Win10批处理删除或恢复资源管理器的七个特殊文件夹

【问题描述】

删除前:



删除后:


作者: Batcher    时间: 2023-11-10 16:40

【解决方案】

请参考Q-04把bat文件保存为ANSI编码:
https://mp.weixin.qq.com/s/Koje4FufWxWBs7ioDy_LJA

1-删除.bat
  1. @fltmc >nul || mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~f0","%*",,"runas",1)(window.close) && exit /b
  2. @echo off
  3. REM 下载
  4. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f
  5. REM 3D对象
  6. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f
  7. REM 图片
  8. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
  9. REM 音乐
  10. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
  11. REM 桌面
  12. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
  13. REM 文档
  14. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f
  15. REM 视频
  16. reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
  17. taskkill /f /im explorer.exe
  18. start explorer.exe
复制代码
2-恢复.bat
  1. @fltmc >nul || mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~f0","%*",,"runas",1)(window.close) && exit /b
  2. @echo off
  3. REM 下载
  4. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /ve /f
  5. REM 3D对象
  6. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /ve /f
  7. REM 图片
  8. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /ve /f
  9. REM 音乐
  10. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /ve /f
  11. REM 桌面
  12. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /ve /f
  13. REM 文档
  14. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /ve /f
  15. REM 视频
  16. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /ve /f
  17. taskkill /f /im explorer.exe
  18. start explorer.exe
复制代码
Win7系统请参考:
http://bbs.bathome.net/thread-64762-1-1.html#pid262904
作者: Batcher    时间: 2023-11-10 16:44

使用 Dism++ 的话可以试试这样操作:


作者: ppll2030    时间: 2023-11-11 13:43

建议一并把该键值下的一起删除。不然在一些软件“打开”浏览时也会出现这7个图标。
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\
作者: Five66    时间: 2023-11-14 00:00

啊,删除后,更新完就又回来了,又要删一次
作者: /zhqsystem/zhq    时间: 2023-11-16 21:23

我在添加几个,这个一般只对首次安装计算机有用,以后基本没用了
  1. rem:echo=桌面添加图标_桌面添加计算机[yes]
  2. Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\hidedesktopicons\newstartpanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d "0x00000000" /f
  3. rem:echo=桌面添加图标_桌面添加控制面板[yes]
  4. Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\hidedesktopicons\newstartpanel" /v "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}" /t REG_DWORD /d "0x00000000" /f
  5. rem:echo=桌面添加图标_主题更改桌面图标[no]
  6. Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\themes" /v "ThemeChangesDesktopIcons" /t REG_DWORD /d "0x00000000" /f
  7. rem:echo=桌面添加图标_桌面添加显示网络[yes]
  8. Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\hidedesktopicons\newstartpanel" /v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d "0x00000000" /f
  9. rem:echo=桌面添加图标_桌面添加库[NO]
  10. Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\hidedesktopicons\newstartpanel" /v "{031E4825-7B94-4dc3-B131-E946B44C8DD5}" /t REG_DWORD /d "0x00000001" /f
  11. rem:echo=桌面添加图标_桌面添加回收站[yes]
  12. Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{645FF040-5081-101B-9F08-00AA002F954E}" /t REG_DWORD /d "0x00000001" /f
  13. rem:echo=直接删除文件不进入回收站[yes]
  14. Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "norecyclefiles" /t REG_DWORD /d "0x00000001" /f
  15. Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\hidedesktopicons\newstartpanel" /v "{645ff040-5081-101b-9f08-00aa002f954e}" /t REG_DWORD /d "0x00000001" /f
  16. rem:echo=强制确认文件删除对话框[yes]
  17. Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "confirmfileDelete" /t REG_DWORD /d "0x00000001" /f
  18. rem:echo=任务栏上对项目分组[no]
  19. Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "notaskGrouping" /t REG_DWORD /d "0x00000001" /f
复制代码





欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2