利用fso判斷文件是否存在
深山工作室 2013/2/6 14:25:45 深山行者 字體:
大 中 小 瀏覽 10406
利用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)閱讀
- NameError: name ‘xxx‘ is not defined問(wèn)題總結(jié)
- CSS中的單位一覽 包括寬度尺寸單位 顏色單位 角度單位
- 深山留言板教師節(jié)效果
- 正則的常表達(dá)式
- 旅行社手機(jī)網(wǎng)站模板1
- 昆山旅游網(wǎng)
- css a標(biāo)簽與如何利用css中text-indent實(shí)現(xiàn)文章縮進(jìn)
- 旅行社網(wǎng)站管理系統(tǒng)商業(yè)版4.0發(fā)布
- 共有0條關(guān)于《利用fso判斷文件是否存在》的評(píng)論
- 發(fā)表評(píng)論