1 下载文件 ,要在winform上的通过一个winform的按钮点击它就下载一个url的文件
2。压缩,解压文件
3 .修改本地注册表。

解决方案 »

  1.   

    压缩解压
    ICSharpCode.SharpZipLib.BZip2
    调用winrar
    using ICSharpCode.SharpZipLib.BZip2; 
    using ICSharpCode.SharpZipLib.Zip; 
    using ICSharpCode.SharpZipLib.Zip.Compression; 
    using ICSharpCode.SharpZipLib.Zip.Compression.Streams; 
    using ICSharpCode.SharpZipLib.GZip; 
    string []FileProperties=new string[2]; 
    FileProperties[0]=strPath; //待解压的文件 
    FileProperties[1]=strPath+@"\";//解压后放置的目标目录 
    UnZip(FileProperties); 
    public void UnZip(string[] args) 

    ZipInputStream s = new ZipInputStream(File.OpenRead(args[0])); 
      
    ZipEntry theEntry;// = s.GetNextEntry(); 
    while ((theEntry = s.GetNextEntry()) != null) 

    string directoryName = Path.GetDirectoryName(args[1]); 
    string fileName      = Path.GetFileName(theEntry.Name); 
    Directory.CreateDirectory(directoryName); 
    if (fileName != String.Empty) 
    {  
    //解压文件到指定的目录 FileStream streamWriter = File.Create(args[1]+theEntry.Name); 
        
    int size = 2048; 
    byte[] data = new byte[2048]; 
    while (true) 

    size = s.Read(data, 0, data.Length); 
    if (size > 0) 

    streamWriter.Write(data, 0, size); 

    else 

    break; 


    streamWriter.Close(); 


    s.Close(); 

    还可使用GZip
      

  2.   

    学习了~~ winForm程序解压缩.rar文件
    http://koujunyu.blog.163.com/blog/static/12741007720103132658678/下载
    http://hi.baidu.com/sbanyv/blog/item/45ad94cef160430792457e97.html两篇文章你看看吧~
      

  3.   

    ICSharpCode这是什么呀不给完代码