'二款简单asp来判断文件存或目录存在的函数,在asp中这样做只要用到filesystemobject就ok了。
function isdir(givepath)
dim realpath,path,num,fs,i
set fs = createobject("scripting.filesystemobject")
path=givepath
if fs.folderexists(path)=true then
isdir=true
else
isdir=false
'fs.createfolder(realpath)
end if
set fs=nothing
end function
function isfile(fpath)
dim fs
set fs = createobject("scripting.filesystemobject")
if fs.fileexists(fpath)=false then
isfile=false
else
isfile=true
end if
set fs=nothing
end function
dim d="a"
if isdir(a) then
response.write("是目录")
else
response.write("不是目录")
end if
dim b="www.111com.net/"
if isfile(b) then
response.write("是文件")
else
response.write("不是文件")
end if
一亿小目标手游
如果让你的人生从来,你可以像王健林一样霸气的表示一亿小目标吗
一亿小目标手机版2019
一亿小目标手机版2019趣味休闲模拟游戏,玩家在游戏中将会通
巴啦啦梦幻餐厅
巴啦啦梦幻餐厅是一款充满魔幻色彩的二次元模拟经营手游,游戏界
恋爱进行时九游版
恋爱进行时九游版是一款以模拟恋爱玩法为核心的角色扮演手游,精
皇室对决fr(Null’s Royale)
皇室对决fr,即皇室战争的私服变态版本,在该版本中玩家能够拥