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