Possible Duplicate:
Passing arguments to a console application from C#
I have a console application that I am running from a windows form application. Currently it runs a process called dnaml.exe The executable I need to hit y and then , is there a way to have my windows form pass this info in? I was able to start it from the form using a Process object. Thanks!
You can write it to the
StandardInputof theProcessobject.http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.redirectstandardinput.aspx