利用fso判斷文件是否存在
深山工作室 2013/2/6 14:25:45 深山行者 字體:
大 中 小 瀏覽 10319
利用fso判斷文件是否存在。
<%
dim fs,fileURL
fileURL="demo.txt" '要檢查是否存在的文件
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.FileExists(server.mappath(fileURL))=true then
response.write "<span style='color:blue;'>文件存在</span>"
else
response.write "<span style='color:red;'>文件不存在</span>"
end if
set fs=nothing
%>
- 相關(guān)閱讀
- window.location.href跳轉(zhuǎn)無反應(yīng)不跳轉(zhuǎn)解決
- 微信公眾平臺(tái)
- 深山留言板釣魚島效果
- 記錄滾動(dòng)條位置(使用userdate)
- 特別推薦的asp數(shù)字加密(rsa)
- css分頁放大效果
- 請(qǐng)勿在本地站發(fā)布亂七八糟的廣告,本站所有的留言與評(píng)論全是需要審核的
- ASP.NET 2和IIS 7.0發(fā)生不兼容變化
- 共有0條關(guān)于《利用fso判斷文件是否存在》的評(píng)論
- 發(fā)表評(píng)論