用fso.fileexists只能查询本地文件是否存在,用组件xmlhttp的readyState的方法可以获取远程文件是否存在,返回大于0,表示文件存在,否则,就是不存在。

set XMLHTTP =Server.CreateObject("Microsoft.XMLHTTP")
XMLHTTP.open("HEAD","http://www.test.com/test.htm",false)
XMLHTTP.send()
if XMLHTTP.status=200 then
'文件存在
end if

相关文章:

  • 2021-11-18
  • 2022-02-26
  • 2021-11-19
  • 2021-05-21
  • 2022-01-04
  • 2021-12-22
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-10-22
  • 2022-12-23
  • 2022-01-17
相关资源
相似解决方案