标题: [注册表类] [分享]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- @fltmc >nul || mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~f0","%*",,"runas",1)(window.close) && exit /b
- @echo off
- REM 下载
- reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f
- REM 3D对象
- reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f
- REM 图片
- reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f
- REM 音乐
- reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f
- REM 桌面
- reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
- REM 文档
- reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f
- REM 视频
- reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f
- taskkill /f /im explorer.exe
- start explorer.exe
复制代码
2-恢复.bat- @fltmc >nul || mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~f0","%*",,"runas",1)(window.close) && exit /b
- @echo off
- REM 下载
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /ve /f
- REM 3D对象
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /ve /f
- REM 图片
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /ve /f
- REM 音乐
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /ve /f
- REM 桌面
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /ve /f
- REM 文档
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /ve /f
- REM 视频
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /ve /f
- taskkill /f /im explorer.exe
- 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
我在添加几个,这个一般只对首次安装计算机有用,以后基本没用了
- rem:echo=桌面添加图标_桌面添加计算机[yes]
- Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\hidedesktopicons\newstartpanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d "0x00000000" /f
- rem:echo=桌面添加图标_桌面添加控制面板[yes]
- Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\hidedesktopicons\newstartpanel" /v "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}" /t REG_DWORD /d "0x00000000" /f
- rem:echo=桌面添加图标_主题更改桌面图标[no]
- Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\themes" /v "ThemeChangesDesktopIcons" /t REG_DWORD /d "0x00000000" /f
- rem:echo=桌面添加图标_桌面添加显示网络[yes]
- Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\hidedesktopicons\newstartpanel" /v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d "0x00000000" /f
- rem:echo=桌面添加图标_桌面添加库[NO]
- Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\hidedesktopicons\newstartpanel" /v "{031E4825-7B94-4dc3-B131-E946B44C8DD5}" /t REG_DWORD /d "0x00000001" /f
- rem:echo=桌面添加图标_桌面添加回收站[yes]
- Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{645FF040-5081-101B-9F08-00AA002F954E}" /t REG_DWORD /d "0x00000001" /f
- rem:echo=直接删除文件不进入回收站[yes]
- Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "norecyclefiles" /t REG_DWORD /d "0x00000001" /f
- Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\hidedesktopicons\newstartpanel" /v "{645ff040-5081-101b-9f08-00aa002f954e}" /t REG_DWORD /d "0x00000001" /f
- rem:echo=强制确认文件删除对话框[yes]
- Reg.exe Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "confirmfileDelete" /t REG_DWORD /d "0x00000001" /f
- rem:echo=任务栏上对项目分组[no]
- 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 |