Actually, this is not something new for a long time. Just post it for fun. It's just modifying the registry. I didn't test it because I was considering the company's machines, so please ask some enthusiastic friend to help test it. Thanks in advance here! The following is his code~~~~~~~~~~~
@echo off
:recall
cls
echo.
echo.
echo ●█〓██▄▄▄▄▄▄ ●●●●●● Japan!
echo ▄▅██████▅▄▃▂
echo ██████████████
echo ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲◤
echo;
echo Please select the following disk drives to hide... ...Fill in the number in front... ...
echo.
echo (1) Hide local C drive
echo (2) Hide local D drive
echo (3) Hide local E drive
echo (4) Hide local F drive
echo (5) Hide all local disks
echo (6) Exit program
echo.
set /p ii=Please enter the corresponding number:
set ii=%ii:~-1%
if #%ii%==#1 goto c
if #%ii%==#2 goto d
if #%ii%==#3 goto e
if #%ii%==#4 goto f
if #%ii%==#5 goto all
if #%ii%==#6 goto end
cls
echo.
echo.
echo I`am Sorry!!! Please enter right number!!!
ping 1.1.1.1 -n 20 -w 100 >nul
goto recall
:c
echo Windows Registry Editor Version 5.00 >1.reg
echo. >>1.reg
echo [HKEY_CURRENT_USER\SoftWare\Microsoft\Windows\CurrentVersion\Policies\Explorer] >>1.reg
echo "NoDrives"=hex:01,00,00,00 >>1.reg
regedit /s 1.reg
del /f 1.reg
echo Hide C drive Finish~~~~~~~~
goto end
:d
echo Windows Registry Editor Version 5.00 >1.reg
echo. >>1.reg
echo [HKEY_CURRENT_USER\SoftWare\Microsoft\Windows\CurrentVersion\Policies\Explorer] >>1.reg
echo "NoDrives"=hex:02,00,00,00 >>1.reg
regedit /s 1.reg
del /f 1.reg
echo Hide D drive Finish~~~~~~~~
goto end
:e
echo Windows Registry Editor Version 5.00 >1.reg
echo. >>1.reg
echo [HKEY_CURRENT_USER\SoftWare\Microsoft\Windows\CurrentVersion\Policies\Explorer] >>1.reg
echo "NoDrives"=hex:04,00,00,00 >>1.reg
regedit /s 1.reg
del /f 1.reg
echo Hide E drive Finish~~~~~~~~
goto end
:f
echo Windows Registry Editor Version 5.00 >1.reg
echo. >>1.reg
echo [HKEY_CURRENT_USER\SoftWare\Microsoft\Windows\CurrentVersion\Policies\Explorer] >>1.reg
echo "NoDrives"=hex:08,00,00,00 >>1.reg
regedit /s 1.reg
del /f 1.reg
echo Hide F drive Finish~~~~~~~~
goto end
:all
echo Windows Registry Editor Version 5.00 >1.reg
echo. >>1.reg
echo [HKEY_CURRENT_USER\SoftWare\Microsoft\Windows\CurrentVersion\Policies\Explorer] >>1.reg
echo "NoDrives"=hex:ff,ff,ff,ff >>1.reg
regedit /s 1.reg
del /f 1.reg
echo Hide all drives Finish~~~~~~~~
goto end
:end
echo.
echo.
echo.
echo Welcome to use the batch hidden disk tool Note: The effect can be seen after restarting!!!!!!!!!
@echo off
:recall
cls
echo.
echo.
echo ●█〓██▄▄▄▄▄▄ ●●●●●● Japan!
echo ▄▅██████▅▄▃▂
echo ██████████████
echo ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲◤
echo;
echo Please select the following disk drives to hide... ...Fill in the number in front... ...
echo.
echo (1) Hide local C drive
echo (2) Hide local D drive
echo (3) Hide local E drive
echo (4) Hide local F drive
echo (5) Hide all local disks
echo (6) Exit program
echo.
set /p ii=Please enter the corresponding number:
set ii=%ii:~-1%
if #%ii%==#1 goto c
if #%ii%==#2 goto d
if #%ii%==#3 goto e
if #%ii%==#4 goto f
if #%ii%==#5 goto all
if #%ii%==#6 goto end
cls
echo.
echo.
echo I`am Sorry!!! Please enter right number!!!
ping 1.1.1.1 -n 20 -w 100 >nul
goto recall
:c
echo Windows Registry Editor Version 5.00 >1.reg
echo. >>1.reg
echo [HKEY_CURRENT_USER\SoftWare\Microsoft\Windows\CurrentVersion\Policies\Explorer] >>1.reg
echo "NoDrives"=hex:01,00,00,00 >>1.reg
regedit /s 1.reg
del /f 1.reg
echo Hide C drive Finish~~~~~~~~
goto end
:d
echo Windows Registry Editor Version 5.00 >1.reg
echo. >>1.reg
echo [HKEY_CURRENT_USER\SoftWare\Microsoft\Windows\CurrentVersion\Policies\Explorer] >>1.reg
echo "NoDrives"=hex:02,00,00,00 >>1.reg
regedit /s 1.reg
del /f 1.reg
echo Hide D drive Finish~~~~~~~~
goto end
:e
echo Windows Registry Editor Version 5.00 >1.reg
echo. >>1.reg
echo [HKEY_CURRENT_USER\SoftWare\Microsoft\Windows\CurrentVersion\Policies\Explorer] >>1.reg
echo "NoDrives"=hex:04,00,00,00 >>1.reg
regedit /s 1.reg
del /f 1.reg
echo Hide E drive Finish~~~~~~~~
goto end
:f
echo Windows Registry Editor Version 5.00 >1.reg
echo. >>1.reg
echo [HKEY_CURRENT_USER\SoftWare\Microsoft\Windows\CurrentVersion\Policies\Explorer] >>1.reg
echo "NoDrives"=hex:08,00,00,00 >>1.reg
regedit /s 1.reg
del /f 1.reg
echo Hide F drive Finish~~~~~~~~
goto end
:all
echo Windows Registry Editor Version 5.00 >1.reg
echo. >>1.reg
echo [HKEY_CURRENT_USER\SoftWare\Microsoft\Windows\CurrentVersion\Policies\Explorer] >>1.reg
echo "NoDrives"=hex:ff,ff,ff,ff >>1.reg
regedit /s 1.reg
del /f 1.reg
echo Hide all drives Finish~~~~~~~~
goto end
:end
echo.
echo.
echo.
echo Welcome to use the batch hidden disk tool Note: The effect can be seen after restarting!!!!!!!!!
Attachments

