[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
@echo off
TITLE  隐藏磁盘批处理  by lwk148440
:lwk148440
cls
COLOR 0A
echo.
echo                   ╭────────────────────╮
echo         ╭────┤       隐藏磁盘批处理  by lwk148440     ├────╮
echo         │        ╰────────────────────╯        │
echo         │       提示:请输入选项前面的序号并回车,谢谢使用。         │
echo         │                                                            │
echo         │                                                            │
echo         │        1、 隐藏 D 盘                 2、 隐藏 E 盘         │
echo         │                                                            │
echo         │        3、 隐藏 F 盘                 4、 隐藏 G 盘         │
echo         │                                                            │
echo         │        5、 隐藏 H 盘                 6、 隐藏 I 盘         │
echo         │                                                            │
echo         │        7、 取消 隐藏                 8、 Read  Me          │
echo         │                                                            │
echo         │        9、 离     开                 10、Visit Maker       │
echo         │                                                            │
echo         │                                                            │
echo         ╰──────────────────────────────╯
echo.
set /p list0= 请输入序号:
if "%list0%"=="1" goto list1
if "%list0%"=="2" goto list2
if "%list0%"=="3" goto list3
if "%list0%"=="4" goto list4
if "%list0%"=="5" goto list5
if "%list0%"=="6" goto list6
if "%list0%"=="7" goto list7
if "%list0%"=="8" goto list8
if "%list0%"=="9" goto list9
if "%list0%"=="10" goto list10
rem ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
:list1
cls
@taskkill /f /IM explorer.exe
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t reg_binary /d 08000000 /f
cls
echo.
echo      已隐藏 D 盘
echo.
echo      请按任意键生效并返回
pause>nul
@start %windir%\explorer.exe
goto lwk148440
rem ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
:list2
cls
@taskkill /f /IM explorer.exe
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t reg_binary /d 10000000 /f
cls
echo.
echo      已隐藏 E 盘
echo.
echo      请按任意键生效并返回
pause>nul
@start %windir%\explorer.exe
goto lwk148440
rem ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
:list3
cls
@taskkill /f /IM explorer.exe
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t reg_binary /d 20000000 /f
cls
echo.
echo      已隐藏 F 盘
echo.
echo      请按任意键生效并返回
pause>nul
@start %windir%\explorer.exe
goto lwk148440
rem ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
:list4
cls
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t reg_binary /d 40000000 /f
cls
@taskkill /f /IM explorer.exe
echo.
echo      已隐藏 G 盘
echo.
echo      请按任意键生效并返回
pause>nul
@start %windir%\explorer.exe
goto lwk148440
rem ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
:list5
cls
@taskkill /f /IM explorer.exe
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t reg_binary /d 80000000 /f
cls
echo.
echo      已隐藏 H 盘
echo.
echo      请按任意键生效并返回
pause>nul
@start %windir%\explorer.exe
goto lwk148440
rem ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
:list6
cls
@taskkill /f /IM explorer.exe
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /t reg_binary /d 00010000 /f
cls
echo.
echo      已隐藏 I 盘
echo.
echo      请按任意键生效并返回
pause>nul
@start %windir%\explorer.exe
goto lwk148440
rem ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
:list7
cls
@taskkill /f /IM explorer.exe
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrives" /f
cls
echo.
echo      已取消隐藏磁盘
echo.
echo      请按任意键生效并返回
pause>nul
@start %windir%\explorer.exe
goto lwk148440
rem ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
:list8
cls
echo.
echo.
echo.
echo.
echo        感谢阁下使用在下花3小时做的这个东东,
echo.
echo        本人在爱机(XPSP3,C,D,E,F,G,H,I盘)
echo.
echo        上试验通过,估计98、zkzk3也没有问题,
echo.
echo        如果你有机会试验并有结果愿意告诉在下
echo.
echo        的话([email]lwk148440@163.com[/email]),万分感激!
echo.
echo.
echo.
echo                              2009.04.03  1:10
echo.
echo  请按任意键返回
pause>nul
goto lwk148440
rem ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
:list9
@exit

TOP

返回列表