P
Paul
Hi,
I am trying to start a process hidden. My code:
wordprocess = new System.Diagnostics.Process(); ;
wordprocess.StartInfo = new System.Diagnostics.ProcessStartInfo(wcmd,
args);
wordprocess.StartInfo.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Hidden;
wordprocess.StartInfo.WorkingDirectory = TemplatePath.Substring(0,
TemplatePath.Length - 1);
wordprocess.StartInfo.ErrorDialog = false;
wordprocess.StartInfo.CreateNoWindow = true;
wordprocess.StartInfo.UseShellExecute = true;
The process is started but it is visible.
CreateNoWindow has no effect because the process I am starting is not a
command line process. I have tried UseShellExecute being true and
false. I have tried to start the process minimized but that has also no
effect. I found several threads discussing this problem but nobody
wrote anything that solves the problem.
With best regards,
Paul Hoepping
Germany.
I am trying to start a process hidden. My code:
wordprocess = new System.Diagnostics.Process(); ;
wordprocess.StartInfo = new System.Diagnostics.ProcessStartInfo(wcmd,
args);
wordprocess.StartInfo.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Hidden;
wordprocess.StartInfo.WorkingDirectory = TemplatePath.Substring(0,
TemplatePath.Length - 1);
wordprocess.StartInfo.ErrorDialog = false;
wordprocess.StartInfo.CreateNoWindow = true;
wordprocess.StartInfo.UseShellExecute = true;
The process is started but it is visible.
CreateNoWindow has no effect because the process I am starting is not a
command line process. I have tried UseShellExecute being true and
false. I have tried to start the process minimized but that has also no
effect. I found several threads discussing this problem but nobody
wrote anything that solves the problem.
With best regards,
Paul Hoepping
Germany.