Thread: WMI
View Single Post
  #3 (permalink)  
Old May 18th, 2005, 03:50 AM
Raghavendra_Mudugal Raghavendra_Mudugal is offline
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Make a Reference to System.Management Namespace

Dim sd As New ManagementObject("win32_logicaldisk.deviceid=""c:" "")
sd.Get()
MessageBox.Show(sd("Size").ToString())

Hope this helps.

With Regards,
Raghavendra Mudugal
Reply With Quote