设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 数据 手机
当前位置: 首页 > 站长学院 > Asp教程 > 正文

asp依照指定目录使用fso创建文件夹代码

发布时间:2022-01-08 16:00 所属栏目:120 来源:互联网
导读:asp按照指定目录使用fso创建文件夹代码: Sub EFolder(FolderName) Dim FSO Set FSO=Server.CreateObject(Scripting.FileSystemObject) If Fso.folderexists(Server.MapPath(FolderName)) Then Set FSO=Nothing Exit Sub Else FSO.CreateFolder(Server.MapPath
 asp按照指定目录使用fso创建文件夹代码:
 
Sub EFolder(FolderName)
Dim FSO
Set FSO=Server.CreateObject("Scripting.FileSystemObject")
If Fso.folderexists(Server.MapPath(FolderName)) Then
Set FSO=Nothing
Exit Sub
Else
FSO.CreateFolder(Server.MapPath(FolderName))
End If
Set FSO=Nothing
End Sub
'===================================================================
Sub ArrayFolder(Path,sep)
Dim ArrayPath,EPath,newPath
ArrayPath = split(Path,sep)
newPath=""
for each Epath in ArrayPath
newPath=newPath&Epath&"/"
newPath = replace(newPath,"//","/")
EFolder newPath
next
End Sub
 
ArrayFolder "1/2/3","/"
 

(编辑:ASP站长网)

    网友评论
    推荐文章
      热点阅读