ASP自动刷新

来源:百度知道 编辑:UC知道 时间:2024/06/01 04:46:13
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="refresh" content="4">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript">
function isfolder()
{
set fso=createobject("scripting.filesystemobject")
if fso.folderexists(server.MapPath(a.txt)){
alert("计算已经结束!");
set fso=nothing
}

}
</script><

folderexists是判断文件夹是否存在的吧。

给你个例子参考吧。
set fso=Server.CreateObject ("Scripting.FileSystemObject")
fpath=server.MapPath ("你所要检查的文件名")
if fso.FileExists(fpath) then
'文件存在
else
'文件不存在
end if