源代码:
<html> <body> <FONT COLOR=#ff0000><% dim fs, d, n set fs=Server.CreateObject("Scripting.FileSystemObject") set d=fs.GetDrive("c:") Response.Write("The file system is: " & d.FileSystem) set d=nothing set fs=nothing %></FONT> </body> </html>
运行结果:
<html> <body> <FONT COLOR=#ff0000><% dim fs, d, n set fs=Server.CreateObject("Scripting.FileSystemObject") set d=fs.GetDrive("c:") Response.Write("The file system is: " & d.FileSystem) set d=nothing set fs=nothing %></FONT> </body> </html>