源代码:
<% Set fs=Server.CreateObject("Scripting.FileSystemObject") If fs.FolderExists("c: emp") = true Then Response.Write("Folder c: emp exists.") Else Response.Write("Folder c: emp does not exist.") End If set fs=nothing %>
运行结果:
<% Set fs=Server.CreateObject("Scripting.FileSystemObject") If fs.FolderExists("c: emp") = true Then Response.Write("Folder c: emp exists.") Else Response.Write("Folder c: emp does not exist.") End If set fs=nothing %>