Writing output to dos cmd line

mscott

Newcomer
Joined
Jan 22, 2002
Messages
22
Location
PA
I have this VB.NET app that i currently writing out put to a label. What would be really nice, is that when I run this app from dos cmd line, I could write the output there. Kinda like cin and cout in c, c++, but in VB.NET. Anyone know if there is a way to accomplish this? Not sure if this is possible, so don't be to harsh in your replies. Thanks.
 
You should create a new project, and choose Console Application as the project type. You can write to the console using System.Console.WriteLine("hello, world!").
 
Also

As usual divil knows his stuff and is correct. Another solution would be to just write System.Console.Write or WriteLn. W/o having to make it a console project.
 
Back
Top