public static string GetLogDirectory() { try { _Log log = new _Log("dd_name"); string name = log._GetLogFilename(); return name.Replace(@"\" + System.IO.Path.GetFileName(name), ""); } catch (Exception ex) { #if DEBUG Console.Write(ex.ToString()); #endif return null; } }
public static string GetLogDirectory() { try { _Log log = new _Log("dd_name"); string name = log._GetLogFilename(); return(name.Replace(@"\" + System.IO.Path.GetFileName(name), "")); } catch (Exception ex) { #if DEBUG Console.Write(ex.ToString()); #endif return(null); } }