'文件夹操作函数 function delfolder() foldername=request.QueryString("foldername") set fso=server.CreateObject("scripting.filesystemobject") tempurl=url&"?foldername="&fso.GetParentfoldername(foldername) fso.deletefolder(foldername) set fso=nothing response.Redirect(tempurl) end function function savefolder() foldername=request.Form("foldername") foldername1=request.Form("foldername1") set fso=server.CreateObject("scripting.filesystemobject") if foldername1="" then set f=fso.createfolder(foldername) else fso.MoveFolder foldername1,foldername end if tempurl=url&"?foldername="&f set fso=nothing response.Redirect(tempurl) end function function newfolder() foldername=request.QueryString("foldername")&"\" formfolder foldername,foldername1 end function function editfolder() foldername=request.QueryString("foldername") foldername1=request.QueryString("foldername") formfolder foldername,foldername1 end function function formfolder(foldername,foldername1) %> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <form name="form1" method="post" action="<%= url%>?action=savefolder"> <tr><td><input name="foldername1" type="hidden" value="<%= foldername1%>"><input name="foldername" type="text" value="<%= foldername%>" style="width:100%"></td></tr> <tr><td><center><input type="submit" name="Submit" value="保存" style="width:200"><input type="reset" name="Submit2" value="重置" style="width:200"></center></td></tr> </form> </table> <% end function function upload() |