<html> <body> <% Dim fs,d,n Set fs=Server.CreateObject("Scripting.FileSystemObject") Set d=fs.GetDrive("c:") n = "驱动器:" & d n = n & "<br>以字节计的总容量:" & d.TotalSize Response.Write(n) set d=nothing set fs=nothing %> </body> </html>
<% Dim fs,d,n Set fs=Server.CreateObject("Scripting.FileSystemObject") Set d=fs.GetDrive("c:") n = "驱动器:" & d n = n & "<br>以字节计的总容量:" & d.TotalSize Response.Write(n) set d=nothing set fs=nothing %>