|
Answer» Hi, How to FIND out the total size of a file system WITHOUT PROPERTIES. e.g I would like to know the size of d:\> I have tried d:\>dir /c /s But there is mismatch of value THRU properties and above command.
Regards, Suresh.here's a vbscript Code: [Select]On Error Resume Next Set objFSO = CreateObject("Scripting.FileSystemObject") Set colDrives = objFSO.Drives For Each objDrive in colDrives Wscript.Echo "Available space: " & objDrive.AvailableSpace Wscript.Echo "Drive letter: " & objDrive.DriveLetter Wscript.Echo "Free space: " & objDrive.FreeSpace Wscript.Echo "Total size: " & objDrive.TotalSize Next usage: cscript myCheckDiskScript.vbsI'm looking for DOS command.
|