communication between console window and a form in VB net

laptop_01

Newcomer
Joined
Feb 6, 2003
Messages
14
Hi

I am trying to create a vb .NET windows application where I can also have a console window displayed in addition to the form.

The idea is that if I type

app1.exe

then application will start up as a window application only. But if I type

app1.exe /b

then the application wiil start up a window application but I will als have a DOS console window up such that I can send commands from it to the form.

Anyone knows how to:

a - How to start a dos window from a windows application (I don't have a console application)
b- How to change focus between the form and the DOS window.
c- How to send commands back and forth.

Thanks
 
Back
Top