I have a windows console app (that accepts parameters) and runs a process. I was wondering if there was any way to run this app from within a windows form button click event. I would like to pass an argument to it as well.
Thanks
I have a windows console app (that accepts parameters) and runs a process. I was wondering if there was any way to run this app from within a windows form button click event. I would like to pass an argument to it as well.
Thanks
Assuming you have a form with a multiline textbox called txtOutput.....
Just use System.Diagnostics.Process.Start with the path to the console application, and the parameters as the second argument.
You'll want to use System.Diagnostics.Process