DOS window in a c# .Net app.

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.
 
P

phoenix

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
 
D

davem

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top