源代码:
<% dim fs, d, n set fs=Server.CreateObject("Scripting.FileSystemObject") set d=fs.GetDrive("c:") Response.Write("The drive type is: " & d.DriveType) set d=nothing set fs=nothing %>
运行结果:
<% dim fs, d, n set fs=Server.CreateObject("Scripting.FileSystemObject") set d=fs.GetDrive("c:") Response.Write("The drive type is: " & d.DriveType) set d=nothing set fs=nothing %>