中国DOS联盟论坛

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-08-12 12:46
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Processing of hiding drive letters
Printable Version  5,592 / 23
Floor1 yuyi0215 Posted 2007-02-05 02:22
初级用户 Posts 10 Credits 35
Hide F drive

@echo off
mountvol f: /l >MountPoint.txt
mountvol f: /d

Restore F drive

@echo
set /p name=<MountPoint.txt
mountvol f: %name%

Note: Do not place the executable file in the drive you are going to hide.
Floor2 utem999 Posted 2007-02-05 05:50
初级用户 Posts 54 Credits 135
Floor3 gaomushan Posted 2007-02-05 06:06
初级用户 Posts 9 Credits 24
I just saw this not long ago,
It belongs to a prank,
There are many solutions.
Floor4 anqing Posted 2007-02-05 07:21
高级用户 Posts 413 Credits 859
I don't know if the C drive is okay /d
Floor5 zjindong Posted 2007-02-07 12:06
初级用户 Posts 26 Credits 64
What is the main function of this parameter?
Floor6 oilio Posted 2007-02-08 01:20
高级用户 Posts 303 Credits 641
I've never seen this command before. Thanks, but I still don't really know how to use it and don't dare to use it randomly.
Floor7 vkill Posted 2007-02-08 01:41
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
This can also be used to list all current drive letters.
Floor8 anqing Posted 2007-02-08 01:52
高级用户 Posts 413 Credits 859
What will happen if you use this command to format the C drive with /d?
Floor9 junyee Posted 2007-02-08 01:52
中级用户 Posts 112 Credits 253
Floor10 junyee Posted 2007-02-08 02:05
中级用户 Posts 112 Credits 253
Using it in the C drive will cause system errors, such as desktop icons disappearing. Applications cannot be opened~ It will seriously affect system operations~
Floor11 anqing Posted 2007-02-08 22:06
高级用户 Posts 413 Credits 859
Floor12 yjhyxing Posted 2007-03-12 09:50
初级用户 Posts 21 Credits 24 From 广东
Develop the good habit of reading posts and replying to posts
Floor13 htysm Posted 2007-03-12 23:26
高级用户 Posts 415 Credits 866
Mountvol creates, deletes, or lists volume mount points. Mountvol is a way to connect volumes without a drive letter.

Syntax
mountvol [Drive:]Path VolumeName

mountvol [Drive:]Path /d

mountvol [Drive:]Path /L

mountvol Drive:/s

Parameters
[drive:]path
Specifies the existing NTFS directory folder where the mount point will reside.
VolumeName
Specifies the volume name of the target volume for the mount location. The general form of the volume name is \\?\Volume{GUID}\, where {GUID} is a Globally Unique Identifier (GUID) (for example, \\?\Volume\{2eca078d-5cbc-43d3-aff8-7e8511f60d0e}\).
/d
Deletes the volume mount point from the specified folder.
L
Lists the volume name mounted by the specified folder.
/s
Only for Itanium-based computers. Mounts the EFI system partition on the specified drive.
/?
Displays help at the command prompt.
Remarks
If all available drive letters are used up, mount a local volume without a drive letter.
If you want to extend volume space without reformatting or replacing the hard drive, you can add mount paths to another volume.
If you use a volume with multiple mount paths, the advantage is that you can access all local volumes using a single drive letter (such as C:). Although users can mount local volumes and assign drive letters to them, they don't need to remember which volume corresponds to which drive letter.
Floor14 nzisisco Posted 2007-03-12 23:44
初级用户 Posts 47 Credits 107
Modifying the registry can also do it

@echo off
REG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoDrives /t REG_DWORD /d 4294967295 /f

Hide all drive letters
Floor15 andysky Posted 2007-03-14 04:19
初级用户 Posts 21 Credits 50
LZ, I deleted the "mount point" file, and now I can't restore my CD drive letter.
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023