Further Modify Execute2

This commit is contained in:
Virtuworks 2014-06-08 18:52:20 -04:00
parent d4bcb47012
commit 56b69677d1

View file

@ -191,17 +191,17 @@ namespace WebsitePanel.Providers.HostedSolution
Directory.SetCurrentDirectory(HandheldcleanupPath); Directory.SetCurrentDirectory(HandheldcleanupPath);
ProcessStartInfo startInfo = new ProcessStartInfo(file, arguments); ProcessStartInfo startInfo = new ProcessStartInfo(file, arguments);
startInfo.UseShellExecute = false;
startInfo.RedirectStandardError = true; startInfo.RedirectStandardError = true;
startInfo.RedirectStandardOutput = true; startInfo.RedirectStandardOutput = true;
startInfo.RedirectStandardInput = true; startInfo.RedirectStandardInput = true;
startInfo.UseShellExecute = false;
startInfo.CreateNoWindow = true; startInfo.CreateNoWindow = true;
startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.WindowStyle = ProcessWindowStyle.Hidden;
Process proc = Process.Start(startInfo); Process proc = Process.Start(startInfo);
StreamWriter inputWriter = proc.StandardInput; StreamWriter inputWriter = proc.StandardInput;
inputWriter.Write(EnterpriseServer); inputWriter.WriteLine(EnterpriseServer);
inputWriter.Flush(); inputWriter.Flush();
inputWriter.Close(); inputWriter.Close();