private static void AddLocalFile(StartupInfo info, string[] args) { string path = args[0]; ArchiveOpenMode mode = File.Exists(path) ? ArchiveOpenMode.OPEN : ArchiveOpenMode.CREATE; Archiver a = new Archiver(path, mode); a.AddLocal(args[1], args[2]); a.Dispose(true); }