A nice scriptlet which was given in reply to a request I put in a newsgroup which overcomes the 2GB barrier on FAT32 filesystems and gives you stats which are good for disk space maintainence.

<%
Call ShowDriveInfo("e:")

Sub ShowDriveInfo(drvPath)
Dim fso, drv, s
Set fso = CreateObject("Scripting.FileSystemObject")
Set drv = fso.GetDrive(fso.GetDriveName(drvPath))
s = "Drive " & UCase(fso.GetDriveName(drvPath)) & " - " '<======== I
s = s & drv.VolumeName & "<br>"
s = s & "Total Space: " & FormatNumber(drv.TotalSize / 1024, 0)
s = s & " Kb" & "<br>"
s = s & "Free Space: " & FormatNumber(drv.FreeSpace / 1024, 0)
s = s & " Kb" & "<br>"
Response.Write s
End Sub
%>


If you like what you see, please link to NetEvolution.co.uk from your site!