asp按照指定目录使用fso创建文件夹代码
网络整理 - 07-26
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&"http://www.cuoxin.com/"
newPath = replace(newPath,"//","http://www.cuoxin.com/")
EFolder newPath
next
End Sub
ArrayFolder "1/2/3","http://www.cuoxin.com/"