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

            return(p.Run());
        }
Example #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());
        }
Example #3
0
        bool DeCompress(string archive)
        {
            var p = new XG.Business.Helper.Process { Command = "unzip", Arguments = "-x " + archive };

            return p.Run();
        }
Example #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();
        }