获取driver网络路径名称

'get the web path of the drive s:
        Dim MM As New Management.ManagementObject(String.Format("win32_logicaldisk.deviceid=""{0}""", gs_DRIVE))
        MM.Get()
        szSharedName = MM.GetPropertyValue("providername").ToString()

如果使用IO.DriveInfo(gs_DRIVE) 则只能获得盘符S:

原文地址:https://www.cnblogs.com/tylertang/p/3523966.html