Suppose I opened command prompt in my system and now I want to pass a command through c# program to that open command prompt window only and i dont want to open new instance of command prompt window to execute the command which I am passing through C# program.
Share
You can try using FindWindow API and SendKeys.