'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:
2022-06-09 01:49:31
'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: