private static void AddWebDirectory(StartupInfo info, string[] args) { string path = args[0]; ArchiveOpenMode mode = File.Exists(path) ? ArchiveOpenMode.OPEN : ArchiveOpenMode.CREATE; Archiver a = new Archiver(path, mode); string target = args.Length > 3 ? args[3] : ""; a.AddWebFolder(args[1], args[2], target); a.Dispose(true); }