利用fso判斷文件是否存在
深山工作室 2013/2/6 14:25:45 深山行者 字體:
大 中 小 瀏覽 10223
利用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
%>
- 相關閱讀
- 高度100%的絕對定位自適應布局技巧
- Request.ServerVariables在網頁中的一些應用集合
- 請勿在本地站發布亂七八糟的廣告,本站所有的留言與評論全是需要審核的
- 按鈕復制文章URL和復制保留文章的版權
- 關于CSS框架的利與弊進行一些對比
- div span 之間不同的用法
- asp利用FSO檢測服務器空間文件夾大小
- asp讀取163的rss之xml數據
- 共有0條關于《利用fso判斷文件是否存在》的評論
- 發表評論