Thanx in advance
I want to create a batch script using which I get all the drives used space, available space, and total space and store it in to the table.
Please help me. i found fsutil command but failed to retrieve result.
Thanx in advance
I want to create a batch script using which I get all the drives used space, available space, and total space and store it in to the table.
Please help me. i found fsutil command but failed to retrieve result.
Save this as a batch file, and double-click it, your information should be written to CSV along side it.
<!-- :
@(Echo Drive,Size[GB],Used[GB],Available[GB]
@CScript //NoLogo "%~f0?.wsf")>"MyDriveInfo.csv"
@Exit /B
-->
<Job><Script Language="VBScript">
Set o=CreateObject("Scripting.FileSystemObject")
For Each oD In o.Drives:If oD.IsReady=True Then
Wscript.Echo oD.DriveLetter & ":," &_
Round(oD.TotalSize/1073741824,2) & "," &_
Round((oD.TotalSize-oD.FreeSpace)/1073741824,2) & "," &_
Round(oD.AvailableSpace/1073741824,2)
Else:Wscript.Echo oD.DriveLetter & ":,,,":End If:Next
</Script></Job>