By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,459 Members | 1,472 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,459 IT Pros & Developers. It's quick & easy.

DOS window in a c# .Net app.

P: n/a
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.
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"davem" <da****@aspekt.com> schreef in bericht
news:bd**************************@posting.google.c om...
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.

Nov 15 '05 #2

P: n/a
"phoenix" <pa******@skynetWORK.be> wrote in message news:<uf**************@TK2MSFTNGP12.phx.gbl>...
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.
Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.