Marc,
I want to run an external app from an assembly.
Is there any way for the framework to wait for the "Are you sure?"
string, and then send a response (in this case, "y")?
Is your process a console (text-mode) application? If so, you could use
something called "standard input/output redirection".
That is, .NET gives you access to the streams for input and out of the
console process (what it reads in and what it writes out), using the
StandardInput and StandardOutput properties of the Process class. If you
look at the .NET SDK Documentation for the StandardOutput property, you can
also find a simple example.
The idea is that you read the standard output until you find the "Are you
sure?" string, and then write the letter "y" (probably along with the Enter
key) to the standard input stream of the process.
That should solve your problem. GUI applications are a totally different
thing.
Hope this helps.
--
Regards,
Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethi s.dystopia.fi http://www.saunalahti.fi/janij/