creatfolder.htm
' 表单文件.
<form name="form1" method="post" action="folder.asp">
创建一个文件夹:
<input type="text" name="name">
<input type="submit" name="Submit" value="提交">
</form>
folder.asp
<%@ LANGUAGE = "VBScript" %>
<% Dim Name
Name = Request("Name")
set fs=createobject("scripting.filesystemobject")
MyFolder=server.mappath(""&name&"")
If NOT fs.folderexists(MyFolder) then
fs.createfolder(MyFolder)
End If
If fs.folderexists(MyFolder) then
%>
恭喜,文件夹:<%=MyFolder%>创建成功!
<%Else%%>
噢,出错啦!
<%End If
%>
本文章来源于网络,作者是:,由代码部落进行采编,如涉及侵权请联系删除!转载请注明出处:https://daimabuluo.cc/biancheng10000wen/1133.html