![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-23 14:46 |
47,812 topics / 349,917 posts / today 0 new / 48,273 members |
| DOS批处理 & 脚本技术(批处理室) » Hide disk drives with batch processing |
| Printable Version 3,521 / 7 |
| Floor1 bagpipe | Posted 2005-12-14 14:28 |
| 银牌会员 Posts 425 Credits 1,144 From 北京 | |
|
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!!!!!!!!! Attachments hidedrive.rar (765 bytes) |
|
| Floor2 shengmingqiu | Posted 2005-12-15 18:55 |
| 新手上路 Posts 3 Credits 6 From 苏州 | |
|
Not bad. It would be better to add a PAUSE later
![]() |
|
| Floor3 flamey | Posted 2005-12-17 15:07 |
| 初级用户 Posts 74 Credits 152 | |
|
Support
|
|
| Floor4 zhoung0 | Posted 2005-12-17 20:52 |
| 初级用户 Posts 18 Credits 54 | |
|
Support!!Good stuff... I'll also add:
Finally add: taskkill /f /im explorer.exe explorer Hehe, no need to restart.... Also display all drives: @echo off title Display all drives reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /va /f taskkill /f /im explorer.exe explorer [ Last edited by zhoung0 on 2005-12-17 at 20:58 ] |
|
| Floor5 lfdjssz | Posted 2006-01-02 16:22 |
| 初级用户 Posts 72 Credits 125 | |
|
Not bad, learned it..................
|
|
| Floor6 taoty | Posted 2006-01-02 20:37 |
| 中级用户 Posts 112 Credits 275 | |
|
I can't understand it very well. I'll take it down and study it slowly.
|
|
| Floor7 wseemed | Posted 2009-05-25 09:52 |
| 初级用户 Posts 24 Credits 29 From 河南 | |
| Floor8 acaigg | Posted 2010-12-29 12:02 |
| 初级用户 Posts 92 Credits 115 | |
|
Learning
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |