ASP生成文件夹
作者:cmscn 日期:2009-03-26
sub MakeNewsDir(foldername)
dim folderos,fileos,myfolder
set fileos=createobject(fso_sys_var)
if foldername<>"" then
myfolder=server.mappath(foldername)
if not fileos.folderexists(myfolder) then
set folderos=fileos.createfolder(myfolder)
end if
end if
set fileos=nothing
end sub
'栏目文件夹生成
call makenewsdir("../"&m_index_url)
call makenewsdir("../"&m_index_url&"/inc")
评论: 0 | 引用: 0 | 查看次数: 496
发表评论