佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 697|回复: 2

file exists

[复制链接]
发表于 20-7-2006 08:00 PM | 显示全部楼层 |阅读模式
请问有什么方法能check到一个file存不存在client的pc里?不要用new ActiveXObject("Scripting.FileSystemObject")

我的system是asp + javascript。
回复

使用道具 举报


ADVERTISEMENT

发表于 21-7-2006 10:33 AM | 显示全部楼层
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.FileExists("c:\asp\introduction.asp")=true then
  response.write("File c:\asp\introduction.asp exists!")
else
   response.write("File c:\asp\introduction.asp does not exist!")
end if
set fs=nothing
%>

为什么不要用这Server.CreateObject("Scripting.FileSystemObject")
回复

使用道具 举报

 楼主| 发表于 23-7-2006 10:01 AM | 显示全部楼层
不能用这个,因为我要check的file是在client side。而这个code check的是server side.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 23-9-2024 07:21 AM , Processed in 0.096403 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表