源代码:
<% Dim fs, d, n Set fs=Server.CreateObject("Scripting.FileSystemObject") Set d=fs.GetDrive("c:") n = "Drive: " & d n = n & " Free Space in bytes: " & d.FreeSpace 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 & " Free Space in bytes: " & d.FreeSpace Response.Write(n) set d=nothing set fs=nothing %>