bool Compress(string file, string archive, string password) { var p = new Server.Helper.Process {Command = "rar", Arguments = "a " + (String.IsNullOrEmpty(password) ? "" : "-p" + password + " ") + archive + " " + file}; return p.Run(); }
bool DeCompress(string archive) { var p = new Server.Helper.Process {Command = "unrar", Arguments = "e -p- " + archive}; return p.Run(); }