日期:2014-05-17  浏览次数:21277 次

解压缩
/// <summary>          /// 压缩文件或者文件夹          /// </summary>          
        /// <param name="_depositPath">压缩后文件的存放路径   如C:\\windows\abc.zip</param>          
        /// <returns></returns>         
        public bool CompressionZip(string _depositPath)          
        {             
            bool result = true;             
            FileStream fs = null;             
            try            
            {                
                ZipOutputStream ComStream = new ZipOutputStream(File.Create(_depositPath));       
                ComStream.SetLevel(9);      //压缩等级           
                foreach (string path in AbsolutePaths)             
                {                      
                    //如果是目录                      
                    if (Directory.Exists(path))