internal static string GetLastWSDLDir(KnowledgeBase KB) { string wsdldir = Utility.WsdlComparerDirectory(KB); string[] dirs = Directory.GetDirectories(wsdldir, @"WSDL*"); DateTime max = new DateTime(1830, 01, 01); string maxdir = ""; foreach (string dir in dirs) { DateTime actual = Utility.GetDateTimeWSDLDirectory(dir); if (DateTime.Compare(actual, max) > 0) { max = actual; maxdir = dir; } } return(maxdir); }