'========================================================================
'関数名:CheckFile
'関数:ファイルが存在するかどうかを確認します
'パラメーター:FILENAME -------:/swf/1.swfなどのファイルアドレス
'戻り値:false ---真
'========================================================================
publicFunctionCheckfile(filename)
onerrorresumenext
dimfsoobj
setFSOOBJ = server.createObject( "Scripting.filesystemObject")
ifnotfsoobj.fileexists(server.mappath(filename))then
checkfile = false
exitFunction
endif
checkfile = true:setFSOOBJ = Nothing
エンド機能