指定的文件存在吗?

代码:

<!DOCTYPE html>

<html>

<body>

 

<%

Set fs=Server.CreateObject("Scripting.FileSystemObject")

 

If (fs.FileExists("c:\winnt\cursors\3dgarro.cur"))=true Then

      Response.Write("File c:\winnt\cursors\3dgarro.cur exists.")

Else

      Response.Write("File c:\winnt\cursors\3dgarro.cur does not exist.")

End If

 

set fs=nothing

%>

 

</body>

</html>

结果:

File c:\winnt\cursors\3dgarro.cur does not exist.

相关文章