Search code examples
windowscommand-linecommand-promptwindows-console

How to access a different console, such as writing to its input buffer


I want to provide input to an application that is attached to a different console. For example, in the following picture, how would I write to the input of the console on the left-hand side from the console on the right-hand side?

console windows example


Solution

  • Sounds like you want IPC (Inter Process Communication) and there's many ways to do that. You can see MSDN for a more detailed explanation of your options.