I want to create an application that starts an application and passes input to that application. I know how to start a process using the classes in System.Diagnostics, but I don't know how to pass data to the process.
For example, and this is just an example, I would like to be able to automatically start an application that requires a username and password and automatically enter the username and password. Of course, that might open the door to security vulnerabilities, but that's not the point of the exercise.
Can someone tell me how to implement the functionality I described?
Is there a general way to go about doing this or does it depend entirely on the idiosyncrasies of the application in question?