DOS window in a c# .Net app.

  • Thread starter Thread starter davem
  • Start date Start date
D

davem

Hey there. Does anyone know of a way (hack or not) to embed a DOS
window in a c# windows form (like embedding a user control for
example). The DOS window must give full command line access and be
able to run console applications that interact with a user.

Any help appreciated. Dave.
 
Use the process class. You can start up "cmd.exe" and use the StandardInput
and StandardOutput properties to redirect the text from e.g. a textfield to
the "cmd.exe" and back.

Yves
 
phoenix said:
Use the process class. You can start up "cmd.exe" and use the StandardInput
and StandardOutput properties to redirect the text from e.g. a textfield to
the "cmd.exe" and back.

I've tried this. The problem is, people want a fully functional dos
box that can either be used as a command prompt or used to display the
i/o of virtually any dos program (written in non-dotnet languages).
There won't be any graphics displayed but there will be a variety of
terminal-type screens.

Process is great for displaying the output but I need true shell
interaction.

Can you think of any ways to acheive this?

Cheers, Dave.
 
Back
Top