public static void RunScript(RConnection c, string scriptPath) { try { string script = File.ReadAllText(scriptPath); script = script.Replace("\r\n", "\r"); c.TryVoidEval(script); } catch (Exception ex) { Console.WriteLine(ex); } }