AA2Install.Archives._7z.Compress C# (CSharp) Method

Compress() public static method

Compresses a specified list of files into a 7z archive.
public static Compress ( string filename, string workingdir, string directory ) : void
filename string Location to save the 7Z file.
workingdir string Working directory of 7za.exe.
directory string Files to compress into the archive.
return void
        public static void Compress(string filename, string workingdir, string directory)
        {
            Task t = new Task(() => SyncCompress(filename, workingdir, directory)); //I have no idea how async methods work

            t.SemiAsyncWait();
        }