diff --git a/Program.cs b/Program.cs index 842b0cf..cf4c493 100644 --- a/Program.cs +++ b/Program.cs @@ -78,11 +78,14 @@ static void start(string clientdir, string client, string user, string uuid, str Info.UseShellExecute = false; Info.RedirectStandardOutput = true; Info.RedirectStandardError = true; + Info.StandardOutputEncoding = Encoding.GetEncoding("CP866"); Process process = new Process(); + StreamWriter streamWriter = File.CreateText(@"SharpMCL.log"); process.StartInfo = Info; Action actionWrite = (sender, e) => { Console.WriteLine(e.Data); + streamWriter.WriteLine(e.Data); }; process.ErrorDataReceived += (sender, e) => actionWrite(sender, e); process.OutputDataReceived += (sender, e) => actionWrite(sender, e);