/** <summary>
/// 提供基本的文件压缩与解压缩操作,详细的处理请使用Devlib.Zip
/// </summary>
public class ZipHelper
{
/// <summary>
/// 压缩
/// </summary>
/// <param name="RarPath">压缩文件目录或压缩文件</param>
///<param name="DesFileName">压缩生成文件名</param>
public static bool Zip(string RarPath,string DesFileName)
{
String the_rar;
RegistryKey the_Reg;
Object the_Obj;
String the_Info;
ProcessStartInfo the_StartInfo;
Process the_Process;
the_Reg = Registry.ClassesRoot.OpenSubKey("Applications//WinRAR.exe//Shell//Open//Command");
the_Obj = the_Reg.GetValue("");
the_rar = the_Obj.ToString();
the_Reg.Close();
the_rar = the_rar.Substring(1, the_rar.Length - 7);
string Rarname = DesFileName;
the_Info =