【ASP】通过fso判断文件是否存在

set fso=Server.CreateObject ("Scripting.FileSystemObject")
fpath=server.MapPath ("你所要检查的文件名")
if fso.FileExists(fpath) then
'文件存在
else
'文件不存在
end if

你可能感兴趣的:(职场,休闲)