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