private static string GetRoot() { try { return Path.GetDirectoryName( Environment.GetCommandLineArgs()[0] ); } catch { return ""; } }