Looking for a command shell window control

TBites

New member
Joined
Sep 16, 2009
Messages
4
Programming Experience
3-5
Hello Guys and gals, I am new this forum. I am soon taking a class in VB.net and I need some support. Don't worry I am not the type of programmer that wants you to do my work - I like to attempt it first myself - but would like you all to share you expertise when you have time. Thank you.

I do have a question for you all. I am building a vb.net program and I was wondering if you all know if VB.net has a Control for the toolbox that
is a command shell window that when I press buttons it runs a command shell script in a command shell window to the right of the buttons. I want to make
it bring up a DOS window and instead of pop up a cmd window it is placed to the right of the command buttons and when I click on the buttons
the programs run in the command window and then it has a right side scrolling bar appear when it needs to scroll but keeps showing the proccess as it executes. please telll me this exists?? thank you.
 
There is no such control but you can rig something yourself. What you would do is call Process.Start to open a command prompt but without displaying a window. You can then redirect the standard input and standard output streams of that process to your own StreamWriter and StreamReader. Then you can write data to standard input and it will be as though you typed into the Console window. Any output that would be displayed in the Console window you will get on standard output and you can display in a TextBox or whatever.

[ame=http://www.vbforums.com/showthread.php?t=381405]Automate Command Prompt Window (CMD), Redirect Output to Applications[/ame]
 
jmcilhinney

thanks so much for you help. I understand what you mean completely.
I am going to have to really hit advanced stage to do that. But I understand what you mean by streaming the output and input. I was afraid of that. Going to be a major project. I am not sure why anyone hasn't done it yet?
You would think there would be a control for this since it would be cool
to run your shell program output into a revolving screen with scroll bars.
Or am I asking to much. ha ha.

Thanks JMc. I appreciate your help very much
-TBites:)
 
Back
Top