mirror of https://github.com/quasar/Quasar.git
commit
06c310489d
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
@ -44,6 +45,8 @@ private void CreateSession()
|
||||||
_read = true;
|
_read = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CultureInfo cultureInfo = CultureInfo.InstalledUICulture;
|
||||||
|
|
||||||
_prc = new Process
|
_prc = new Process
|
||||||
{
|
{
|
||||||
StartInfo = new ProcessStartInfo("cmd")
|
StartInfo = new ProcessStartInfo("cmd")
|
||||||
|
@ -52,6 +55,8 @@ private void CreateSession()
|
||||||
RedirectStandardInput = true,
|
RedirectStandardInput = true,
|
||||||
RedirectStandardOutput = true,
|
RedirectStandardOutput = true,
|
||||||
RedirectStandardError = true,
|
RedirectStandardError = true,
|
||||||
|
StandardOutputEncoding = Encoding.GetEncoding(cultureInfo.TextInfo.OEMCodePage),
|
||||||
|
StandardErrorEncoding = Encoding.GetEncoding(cultureInfo.TextInfo.OEMCodePage),
|
||||||
CreateNoWindow = true,
|
CreateNoWindow = true,
|
||||||
WorkingDirectory = Path.GetPathRoot(Environment.GetFolderPath(Environment.SpecialFolder.System)),
|
WorkingDirectory = Path.GetPathRoot(Environment.GetFolderPath(Environment.SpecialFolder.System)),
|
||||||
Arguments = "/K"
|
Arguments = "/K"
|
||||||
|
|
Loading…
Reference in New Issue