2011年5月16日
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using ICSharpCode.SharpZipLib.Zip; //开源工具,可免费下载:下载地址://http://files.cnblogs.com/xiaowei0705/SharpZipLib_0860_Bin.zipusing System.IO;namespace Package{ class Class1 { #region 加压解压方法 /// <summary> /// 功能:压缩文件(暂时只压缩 阅读全文
posted @ 2011-05-16 16:35 xiaowei0705 阅读(3164) 评论(1) 推荐(1) 编辑
摘要: //取得系统临时目录string sysTempDir = Path.GetTempPath();//要解压的文件路径,请自行设置string rarFilePath = @"d:\test.rar";//确定要解压到的目录,是系统临时文件夹下,与原压缩文件同名的目录里string unrarDestPath = Path.Combine(sysTempDir, Path.GetFileNameWithoutExtension(rarFilePath));//组合出需要shell的完整格式string shellArguments = string.Format(" 阅读全文
posted @ 2011-05-16 16:29 xiaowei0705 阅读(1482) 评论(3) 推荐(2) 编辑