Пример #1
0
        bool DeCompress(string archive)
        {
            var p = new XG.Business.Helper.Process {
                Command = "unzip", Arguments = "-x " + archive
            };

            return(p.Run());
        }
Пример #2
0
        bool Compress(string file, string archive, string password)
        {
            var p = new XG.Business.Helper.Process {
                Command = "zip", Arguments = (String.IsNullOrEmpty(password) ? "" : "-e" + password + " ") + archive + " " + file
            };

            return(p.Run());
        }
Пример #3
0
        bool DeCompress(string archive)
        {
            var p = new XG.Business.Helper.Process { Command = "unzip", Arguments = "-x " + archive };

            return p.Run();
        }
Пример #4
0
        bool Compress(string file, string archive, string password)
        {
            var p = new XG.Business.Helper.Process {Command = "zip", Arguments = (String.IsNullOrEmpty(password) ? "" : "-e" + password + " ") + archive + " " + file};

            return p.Run();
        }