(编辑:jimmy 日期: 2024/11/13 浏览:2)
<% set fs=createobject("scripting.filesystemobject") %>
<% MyFolder=server.mappath("/chunfeng/happy/") %>
<%
If NOT fs.folderexists(MyFolder) then
fs.createfolder(MyFolder)
End If
%>
<%
If fs.folderexists(MyFolder) then
response.write "恭喜,文件夹创建成功!"
Else
response.write "警告:文件夹创建失败!"
End If
%>
<%
set remdir=fs.getfolder(myfolder)
remdir.delete
set remdir=nothing
If NOT fs.folderexists(myfolder) then
response.write "恭喜,文件夹删除成功!"
Else
response.write "警告:文件夹删除失败!"
End If
%>[1]