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
Related posts:
- Get disk info using VBScript and the FSO Get disk info using VBScript and the FSO Set objFso...
- free disk space This example shows how to display the free disk space,...
- free disk space, wmi version free disk space, wmi version with C Sharp using System;using...
- bytes to whatever Function SetBytes(Bytes) As String On Error GoTo errorhandler If Bytes...
- Hard Disk size using WMI This example will display the size of your hard disk...
Related posts brought to you by Yet Another Related Posts Plugin.






















