-1

Is it possible to run an executable inside a windows form in C#? For example use cmd.exe in a frame? I'd like to do this with PuTTY like SuperPuTTY does.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
user3235397
  • 49
  • 1
  • 7

1 Answers1

0

Yes you can, as long as the program you want to control works from the command line (stdin / stdout).

Start the process and redirect the Standard Out, Standard In, and Standard Error to your application, so you can display the info on your form.

The following link contains some sample code on how to start and redirect: http://msdn.microsoft.com/en-us/library/system.diagnostics.process.standardoutput.aspx

Wagner DosAnjos
  • 6,304
  • 1
  • 15
  • 29