public void Process() { if (!File.Exists("log.txt")) { Console.WriteLine("log.txt file not exist!"); Console.Read(); return; } var links = ParseFileLinks("log.txt"); var xlTaskItems = CreateXlTaskQueues(links); //Download(xlTaskItems); var xlHelper = new XLHelper(); xlHelper.Init(); ProcessQueues(xlHelper, xlTaskItems); Console.WriteLine("work complete!"); MyCommonHelper.TryChangeFileName("log.txt", string.Format("log_{0}.txt", DateTime.Now.ToString("yyyyMMdd-HHmmss"))); }
static PsController() { _xlHelper.Init(); }