首页 > 其他 > 详细

基于C/S模式的程序更新-解压

时间:2016-07-08 15:17:20      阅读:212      评论:0      收藏:0      [点我收藏+]

主要是利用开源dll----SharpCompress.dll

 1  using (Stream stream = File.OpenRead(exePath + @"\Update.RAR"))
 2             {
 3                 var reader = ReaderFactory.Open(stream);
 4                 while (reader.MoveToNextEntry())
 5                 {
 6                     if (!reader.Entry.IsDirectory)
 7                     {
 8                         //Console.WriteLine(reader.Entry.FilePath);
 9                         reader.WriteEntryToDirectory(exePath, ExtractOptions.ExtractFullPath | ExtractOptions.Overwrite);
10                     }
11                 }
12             }

 

基于C/S模式的程序更新-解压

原文:http://www.cnblogs.com/JoeyZJ/p/5653265.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!