Last updated: August 26, 2026.
A FileSystemObject Drive object describes a local, removable, or network drive visible to the IIS application-pool identity.
Inspect a configured drive
<%
Dim fso, drive
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set drive = fso.GetDrive("D:")
If drive.IsReady Then
Response.Write "Free bytes: " & drive.FreeSpace
End If
Set drive = Nothing
Set fso = Nothing
%>Useful properties include DriveLetter, DriveType, FileSystem, FreeSpace, TotalSize, and IsReady. Inspect only configured drives; never accept a drive or UNC path directly from a request.