Expert Software Company : News

miercuri, 19 mai 2010

Informatii Discuri PC (HDD, DVD, FLOPPY)

objWMI = Getobject("winmgmts:\\")
cCadWMI = "Select FreeSpace,Size,Name From Win32_LogicalDisk"
objDisk = objWMI.ExecQuery(cCadWMI)

For Each Disk In objDisk
? "Disk: " + Disk.Name + " - Liber: " + Transform(Disk.FreeSpace) + " Total:" + Transform(Disk.Size)

NEXT

Niciun comentariu:

Trimiteți un comentariu