I have a training and testing application that tells gives users certain tasks and then programmatically determines whether they have been performed. One of the tasks is typing something in the command line prompt "dir /s" for example.
I know I can redirect the input/output of an instance of "cmd.exe" that my own application creates but how can I do the same for an instance that the user has launched?
Also, I want the user to be able to see results of their actions in the command-prompt rather than my app silently swallowing them.