.NET and XPe question for MS

  • Thread starter Thread starter Howard Smith
  • Start date Start date
H

Howard Smith

I have the following code snippet

With New Management.ManagementObject
("win32_logicaldisk.deviceid=""" & "C:".Substring(0, 2)
& """")
.Get()
mDescription = CStr(.Properties
("Description").Value)
mDriveType = GetDriveType(.Properties
("DriveType"))
mFileSystem = CStr(.Properties
("FileSystem").Value)
mFreeSpace = GetBytes(.Properties
("FreeSpace"))
mName = CStr(.Properties("Name").Value)
mSize = GetBytes(.Properties("Size"))


Which works fine on standard XP, but on XPe everything
runs but freespace and size always return 0.

I cannot find any mention of dependencies for the
managementobject?

Thanks

Howard Smith
 
I am just now running into this exact same issue where freespace and
size are set to zero. Was there ever any resolution here? I haven't
found any other mention of this problem.
 
Back
Top