1.20 获取"Volume{GUID}" https://scz.617.cn/windows/202204221459.txt A: scz 2022-04-02 diskpart.exe只能获取"Disk ID",无法获取"Volume{GUID}",有些文章瞎特么写, 这俩不是一个东西。有几种办法获取"Volume{GUID}" 1) powershell $ powershell -Command "GWMI -namespace root\cimv2 -class win32_volume | FL -property Capacity, DriveLetter, DeviceID" Capacity : ... DriveLetter : X: DeviceID : \\?\Volume{7569e44c-e279-4e1e-9fec-44e04334ba83}\ 2) mountvol $ mountvol X:\ /L \\?\Volume{7569e44c-e279-4e1e-9fec-44e04334ba83}\ 可在diskmgmt.msc中删除指定卷的盘符,也可命令行完成 $ mountvol X:\ /D 此时仍可在资源管理器中访问该卷,在"Win-R"中输入"Volume{GUID}"回车即可,cmd 中需要"start Volume{GUID}",直接在资源管理器地址栏输入"Volume{GUID}"不行。