-
'ชื่อฟังก์ชั่น: checkfile
ฟังก์ชั่น: ตรวจสอบว่ามีไฟล์อยู่หรือไม่
'พารามิเตอร์: ชื่อไฟล์ ------- ที่อยู่ไฟล์เช่น: /swf/1.swf
'ค่าส่งคืน: เท็จ --- จริง
-
PublicFunctionCheckFile (ชื่อไฟล์)
onerrorresumenext
dimfsoobj
setfsoobj = server.createObject ("Scripting.filesystemObject")
ifnotfsoobj.fileexists (server.mappath (ชื่อไฟล์)) จากนั้น
checkFile = false
exitfunction
endif
checkfile = true: setfsoobj = ไม่มีอะไร
endfunction