Modify Execute2

This commit is contained in:
Virtuworks 2014-06-08 18:29:01 -04:00
parent 6ac1508fcb
commit d4d3548f63
2 changed files with 9 additions and 5 deletions

View file

@ -193,12 +193,18 @@ namespace WebsitePanel.Providers.HostedSolution
startInfo.RedirectStandardError = true;
startInfo.RedirectStandardOutput = true;
startInfo.UseShellExecute = true;
startInfo.RedirectStandardInput = true;
startInfo.UseShellExecute = false;
startInfo.CreateNoWindow = true;
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
Process proc = Process.Start(startInfo);
StreamWriter inputWriter = proc.StandardInput;
inputWriter.Write(EnterpriseServer);
inputWriter.Flush();
inputWriter.Close();
if (proc == null)
throw new ApplicationException("Proc is null.");