<%
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!