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