Hi

I have a code snippet....

With New Management.ManagementObject("win32_logicaldisk.deviceid=""" &
"C:".Substring(0, 2) & """")

.Get()

mFreeSpace = .Properties("FreeSpace").Value

mSize = .Properties("Size").Value

TextBox4.Text = mFreeSpace.ToString

TextBox6.Text = mSize.ToString

End With

Which on XP Pro works fine. However I am working with XP embedded, and when
I run this it returns 0 for both freespace and size
Does anyone know which XP component this may be dependant upon?

TIA

Howard Smith

Re: NET 1.1 dependancies XP embedded by Howard

Howard
Fri Feb 06 06:25:16 CST 2004

Found it. This code has a dependancy on dskquota.dll


"Howard Smith" <hsmith@nospamdynamax.co.uk> wrote in message
news:OL0USFJ7DHA.2044@TK2MSFTNGP10.phx.gbl...
> Hi
>
> I have a code snippet....
>
> With New Management.ManagementObject("win32_logicaldisk.deviceid=""" &
> "C:".Substring(0, 2) & """")
>
> .Get()
>
> mFreeSpace = .Properties("FreeSpace").Value
>
> mSize = .Properties("Size").Value
>
> TextBox4.Text = mFreeSpace.ToString
>
> TextBox6.Text = mSize.ToString
>
> End With
>
> Which on XP Pro works fine. However I am working with XP embedded, and
when
> I run this it returns 0 for both freespace and size
> Does anyone know which XP component this may be dependant upon?
>
> TIA
>
> Howard Smith
>
>