可以在线创建文件夹吗?
来源:asp之家 时间:2009-11-01 18:07:00
folder.htm
<html>
<head>
<title>闪亮日子之在线创建文件夹</title>
</head>
<body>
春风精彩<br>
在线创建文件夹</td>
<tr>
<td height="28"><form name="form1" method="post" action="creatfolder.asp">
<div align="center"><center><p>新建文件夹:
<input type="text" name="name" size="20" style="font-size: 12pt">
<input type="submit" name="Submit" value="创建" style="font-size: 12pt"> </p>
</center></div>
</form>
</td>
</tr>
</center></div>
</body>
</html>
creatfolder.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
%>
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
视觉注意力—解剖设计的根源
![](https://img.aspxhome.com/file/UploadPic/20101/22/visual-attention_banner-59s.jpg)
新 API 寻求让 JavaScript 操作本地文件
![](https://img.aspxhome.com/file/UploadPic/200911/27/2g33954gi_lit-43s.gif)
IE下,事件触发那点破烂事儿
写了一个小巧的jquery拾色工具
![](https://img.aspxhome.com/file/UploadPic/20101/11/20091110144913-23s.gif)
如何获取SQL Server数据库元数据的方法
针对google Chrome的 CSS hacks
有效LOGO设计的最重要的提示
![](https://img.aspxhome.com/file/UploadPic/20106/9/01-95s.gif)
PHP实现表单处理方法详解
![](https://img.aspxhome.com/file/2023/6/55346_0s.png)
数据库的选择原则是什么?
输入法下keyup失效的解决方案
CSS编写过程中常见的10个错误
讲解设计应用程序时避免阻塞的八个准则
ORACLE常见错误代码的分析与解决三
自己用的ASP分页函数
asp简单的仿图片验证码
Dreamweaver制作网页幻灯片效果
![](https://img.aspxhome.com/file/UploadPic/20072/200723113327918s.gif)
ASP程序中使用断开的数据记录集
判断sql语句执行是否成功
浅析MySQL数据库授权原则
[hta]一个定时重启或关闭计算机的小工具
![](https://img.aspxhome.com/file/UploadPic/200710/17/20071017123221194s.jpg)