Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am wondering is there is a way to write a .bat file that will tell me the size of hard disk for every NT4 machine that I have. I realize I can do this by installing WMI for NT but I don't want to do that if I don't have to. I appreciate the help.

You need to look at the drive object in wsh help. Here is an example of what you can do
<job>
<object id="fso" progid="Scripting.FileSystemObject" />
<script language="vbscript">
set dr = fso.GetDrive ("C:")
with fso.GetDrive ("C:")
WScript.echo "Available space " & cstr (.AvailableSpace)
WScript.echo "Free space " & cstr(.FreeSpace)
WScript.echo "TotalSize " & cstr(.TotalSize)
end with
</script>
</job>

Are all the machines networked and are all the drives shared? You didn't say whether you wanted to do it from one machine or you want a script that can be saved and executed on every machine.

![]() |
Batch Copy Files w/ Time/...
|
Windows NT4 and Teaming
|
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |