获取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:
好的程序员,他们删掉的代码,比留下来的还要多很多。