private static void Excute(string args) { args = args.Replace("\\", "\\\\"); try { CmdParameter cmdParameter = CmdParameter.Create(args); if (string.IsNullOrEmpty(cmdParameter.inDir)) { return; } if (!string.IsNullOrEmpty(cmdParameter.docDir)) { DocBuilder docBuilder = new DocBuilder(cmdParameter); docBuilder.Excute(); } if (!string.IsNullOrEmpty(cmdParameter.outDir)) { CompressBuilder compressor = new CompressBuilder(cmdParameter); compressor.Excute(); } } catch (Exception ex) { Console.WriteLine(string.Format("error:\"{0}\".", ex.Message)); } }