Click to See Complete Forum and Search --> : Display disk space


Felix Tolentino
05-12-2002, 08:07 PM
Do you guys know a command line utility that will display the following information:

1. Total disk space (KB or MB)
2. Free disk space (KB or MB)
3. Used disk space (KB or MB)
4. Percentage of used disk space (%)

for each drive on a Windows 2000 server (similar to what rdf.exe from Aintx nt tools is doing)?

Your help are greatly appreciated.

shovel204
05-14-2002, 02:21 AM
M$ article on a tool from the resource kit http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q295406
This one suggests using
chkdsk {drive letter] This is a sample of what it will report.
To determine the current cluster size and volume statistics, run a read-only chkdsk command from a command prompt, as follows
IE: Chkdsk D:
and then view the resulting output. For example:
4096543 KB total disk space. <--- Total formatted disk capacity.
2906360 KB in 19901 files. <--- Space used by user file data.
6344 KB in 1301 indexes. <--- Space used by NTFS indexes.
0 KB in bad sectors. <--- Space lost to bad sectors.
49379 KB in use by the system. <--- Includes MFT and other NTFS metafiles.
22544 KB occupied by the log file. <--- NTFS Log file - (Can be adjusted using chkdsk /L:size)
1134460 KB available on disk. <--- Available FREE disk space

4096 bytes in each allocation unit. <--- Cluster Size. (4K)
1024135 total allocation units on disk. <--- Total Clusters on disk.
283615 allocation units available on disk. <--- Available free clusters.

Hope this is a little help.

------------
Felix Tolentino at 5/12/2002 9:07:55 PM

Do you guys know a command line utility that will display the following information:

1. Total disk space (KB or MB)
2. Free disk space (KB or MB)
3. Used disk space (KB or MB)
4. Percentage of used disk space (%)

for each drive on a Windows 2000 server (similar to what rdf.exe from Aintx nt tools is doing)?

Your help are greatly appreciated.