源代码:
<% dim fs, d, n set fs=Server.CreateObject("Scripting.FileSystemObject") set d=fs.GetDrive("c:") Response.Write("The drive letter is: " & d.driveletter) 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 letter is: " & d.driveletter) set d=nothing set fs=nothing %>