在 Windows 中使用卷 ID 而不是驱动器号访问磁盘驱动器

olv*_*vin 40 windows path usb-flash-drive external-hard-drive

在 Windows 中,我可以使用卷 ID 而不是驱动器号来访问磁盘驱动器吗?它对于外部驱动器可能非常有用。

Gen*_*ene 52

您可以mountvol在命令提示符中使用以获取要访问的卷的 ID。

在此处输入图片说明

此 ID 可用于打开资源管理器窗口,独立于驱动器号

在此处输入图片说明

要创建驱动器的快捷方式,请使用以下内容创建一个新的批处理文件:

start \\?\Volume{1b3b1146-4076-11e1-84aa-806e6f6e6963}\
Run Code Online (Sandbox Code Playgroud)


小智 10

PowerShell 中,像这样使用Get-Volume管道Format-List

get-volume | fl 
Run Code Online (Sandbox Code Playgroud)

将为您提供所需的一切,例如SYSTEM RESERVED我的一台机器上的此卷:

ObjectId             : {1}\\ACER-M3900\root/Microsoft/Windows/Storage/Providers_v2\WSP_Volume.ObjectId="{5b16a307-de54-11e7-8aeb-806e6f6e6963}:VO:\\?\Volume{b41b0670-0000-0000-00e8-0e8004000000}\"
PassThroughClass     :
PassThroughIds       :
PassThroughNamespace :
PassThroughServer    :
UniqueId             : \\?\Volume{b41b0670-0000-0000-00e8-0e8004000000}\
AllocationUnitSize   : 4096
DedupMode            : NotAvailable
DriveLetter          :
DriveType            : Fixed
FileSystem           : NTFS
FileSystemLabel      : SYSTEM RESERVED
FileSystemType       : NTFS
HealthStatus         : Healthy
OperationalStatus    : OK
Path                 : \\?\Volume{b41b0670-0000-0000-00e8-0e8004000000}\
Size                 : 105058304
SizeRemaining        : 33992704
PSComputerName       :
Run Code Online (Sandbox Code Playgroud)