.NET and XPe question for MS

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
 
A

Adam Kaufman

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top