I will figure out how to start the process. But now the problem is that the console window (in this case 7z) pops up, blocking my vision and removing my focus, interrupting my sentence, or w / e, I do it every few seconds. It is very annoying how I can prevent this. I thought CreateNoWindow solves this, but it is not.
NOTE. Sometimes the console requires user input (replace the file or not). So completely hiding this can be a problem.
This is my current code.
void doSomething(...) { myProcess.StartInfo.FileName = ...; myProcess.StartInfo.Arguments = ...; myProcess.StartInfo.CreateNoWindow = true; myProcess.Start(); myProcess.WaitForExit(); }
c # process
user34537 Apr 10 '09 at 10:50 2009-04-10 22:50
source share