源代码:
<% Dim fs, d, n Set fs=Server.CreateObject("Scripting.FileSystemObject") Set d=fs.GetDrive("c:") n = "Drive: " & d n = n & " Available Space in bytes: " & d.AvailableSpace Response.Write(n) set d=nothing set fs=nothing %>
运行结果:
<% Dim fs, d, n Set fs=Server.CreateObject("Scripting.FileSystemObject") Set d=fs.GetDrive("c:") n = "Drive: " & d n = n & " Available Space in bytes: " & d.AvailableSpace Response.Write(n) set d=nothing set fs=nothing %>