Categories

Thousands of experts bid on your personal project at ScriptLance.com

Disk drive info

Set objWMIService = GetObject(“winmgmts:”)
Set objLogicalDisk = objWMIService.Get(“Win32_LogicalDisk.DeviceID=’c:’”)
Wscript.Echo  “Total Size ” & objLogicalDisk.sIZE & ” bytes” & vbCrLF & _
“Free space is ” & objLogicalDisk.FreeSpace & ” bytes” & vbCrLF & _
“FileSystem is ” & objLogicalDisk.FileSystem

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

You must be logged in to post a comment.