顶者有分这是关系到底层的应用问题,请大侠指教啊。。

解决方案 »

  1.   

    使用外部调用程序,调用rar.exe就行,当然前提是要有这个rar.exe先
      

  2.   

    msdn上有篇文章讲压缩的,楼主可以去看一下。
      

  3.   

    http://community.csdn.net/Expert/topic/4208/4208649.xml?temp=.5379602不知道是不是你想要的,看看吧!
      

  4.   

    在程序里面调用winrar等的命令行调用方式就可以了!!
      

  5.   

    http://blog.csdn.net/cityhunter172/我有篇文章专讲压缩与解压
      

  6.   

    string Strdir = DirectoryName;//要压缩的文件夹
    string StrdirGoal = Strdir + "\\" + "exam";//压缩包存放位置
    string StrCmd = "a " + " -ep1 -sfx " + StrdirGoal + " " + Strdir;
    string StrRARCmd = Server.MapPath( "" ) + "\\Rar\\Rar.exe ";
    Process.Start( StrRARCmd, StrCmd );
    你把压缩文件考到wwwroot....
    只需要四个文件就可以了
    而且可以压缩文件夹,自动解压。等等。
      

  7.   

    string readRoot = @"C:\";
    string filePath = @"C:\files.rar";
    string unZipFolder = @"C:\files\";
    //调用程序WinRAR进行解压
    System.Diagnostics.Process process = new System.Diagnostics.Process();
    //设置执行文件物理存放目录
    process.StartInfo.FileName = readRoot + "WinRAR.exe";
    process.StartInfo.Arguments = " x -inul -y " + filePath + " " + unZipFolder;
    //进行解压
    process.Start();       
     //等待解压的完成
    while(!process.HasExited)          
    {
    }