|
|
asp检索文件是否存在 |
作者:admin 发表时间:2014/9/23 人气: |
|
|
<% '================================================== '函数名:ChkFile '作 用:检索文件是否存在 '参 数:FilePath ------要检索的文件路径 '================================================== Function ChkFile(FilePath) dim path path=Server.MapPath(FilePath) Set fso=Server.CreateObject("Scripting.FileSystemObject") If fso.FileExists(path) then ChkFile="OK!" Else ChkFile="文件不存在" End IF fso.Close Set fso=Nothing End Function %>
文章来源:www.sensheng.net.cn |
文章点评 |
|
|
|
|
|