http://free.cx001.com/cityhunter/WebApplication17.zip此软件通过一“WebForm”网页实现以下功能(主要是对用户目录进行操作):
1、以“TreeView”形式浏览用户目录下的文件夹(可展开)和文件;
2、剪切、复制、粘贴、删除、重命名文件或文件夹,新建文件夹;
3、可上传压缩文件(*.zip,*.rar),然后在用户主目录解圧,也可对文件(夹)进行压缩;
4、可下载文件、对于文件夹或是多个文件则进行压缩打包成(DownLoad.zip)下载;
5、分割文件(为减轻服务器负担,设定为2~5个部分)以及提供文件的合并;
6、提供一回收站“Recycler”;
7、如果文件名冲突,自动重命名——在文件名称后加(i);提供源代码,大家可以根据需求融入自己的网站。我现在正在找工作,希望大家有空帮我联系联系。我的E-Mail:[email protected] ,谢谢!!

解决方案 »

  1.   

    利用System.Xml.XmlDocument读取文件数据,
    再做出相应处理
      

  2.   

    我已经运行过,可是老是出现对路径“D:\sdjs\WebApplication17\DirState.dat”的访问被拒绝。堆栈跟踪: 
    [UnauthorizedAccessException: 对路径“D:\sdjs\WebApplication17\DirState.dat”的访问被拒绝。]
       System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
       System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +859
       System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +44
       System.IO.StreamWriter.CreateFile(String path, Boolean append) +55
       System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +49
       System.IO.StreamWriter..ctor(String path, Boolean append) +66
       System.IO.File.CreateText(String path) +32
       WebApplication17.WebForm1.ClearDirState() in c:\documents and settings\fly\vswebcache\gczj-zkfl\webapplication17\webform1.aspx.cs:663
       WebApplication17.WebForm1.Page_Load(Object sender, EventArgs e) in c:\documents and settings\fly\vswebcache\gczj-zkfl\webapplication17\webform1.aspx.cs:426
       System.Web.UI.Control.OnLoad(EventArgs e) +67
       System.Web.UI.Control.LoadRecursive() +29
       System.Web.UI.Page.ProcessRequestMain