Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I hide a console application user interface when using Process.Start?

Tags:

I want to run a console application that will output a file.

I user the following code:

Process barProcess = Process.Start("bar.exe", @"C:\foo.txt");

When this runs the console window appears. I want to hide the console window so it is not seen by the user.

Is this possible? Is using Process.Start the best way to start another console application?