优质采官方网站安徽外径建设集团,招聘网站开发的目的与意义,东莞网站建设推广公司,在婚恋网站上做红娘怎么样使用Mountvol命令挂载时#xff0c;发现GUID不对啊#xff0c;哪应该到哪找呢#xff1f; 1.首先可以用Mountvol命令#xff1a; Mountvol 创建、删除或列出卷的装入点。Mountvol 是一种不需要驱动器号而连接卷的方式。 语法#xff1a; mountvol [Drive:]Path VolumeName…
使用Mountvol命令挂载时发现GUID不对啊哪应该到哪找呢 1.首先可以用Mountvol命令 Mountvol 创建、删除或列出卷的装入点。Mountvol 是一种不需要驱动器号而连接卷的方式。 语法 mountvol [Drive:]Path VolumeName mountvol [Drive:]Path /d mountvol [Drive:]Path /l mountvol [Drive:]Path /p mountvol /r mountvol /n mountvol /e mountvol Drive:/s
参数 [Drive:]Path 指定装入点将驻留其中的现有 NTFS 目录文件夹。 VolumeName 指定装入点目标卷的卷名。该卷名结构为 \\?\Volume{GUID}\其中 {GUID} 为全局唯一标识符 (GUID)例如\\?\Volume\{2eca078d-5cbc-43d3-aff8-7e8511f60d0e}\。 /d 从指定文件夹中删除卷装入点。 2.GUID在哪找 ODD属性-Details-Property有个Class Guid这是不是的。
查看文章
https://social.technet.microsoft.com/Forums/en-US/e7b2ddd6-f245-49ed-8fec-3b6e08e75369/how-do-i-find-the-partition-guid?forumwinservergen
有这样说法可以用win32_volume查看
----------------------------------------------------------------------------------------------------------------------------------------------- GWMI -namespace root\cimv2 -class win32_volume | FL -property Label,DriveLetter,DeviceID,SystemVolume,Capacity,Freespace -----------------------------------------------------------------------------------------------------------------------------------------------3.C#代码 ManagementObjectSearcher deviceList new ManagementObjectSearcher(Select DriveLetter, DeviceID,DriveType,Name from Win32_Volume );
foreach (ManagementObject device in deviceList.Get())
{
string name Convert.ToString(device.GetPropertyValue(Name));
string DriveType Convert.ToString(device.GetPropertyValue(DriveType));
string DeviceID Convert.ToString(device.GetPropertyValue(DeviceID));
}这里的DeviceID就是GUID 相关链接
http://blog.csdn.net/holandstone/article/details/8129180
https://social.technet.microsoft.com/Forums/en-US/e7b2ddd6-f245-49ed-8fec-3b6e08e75369/how-do-i-find-the-partition-guid?forumwinservergen