Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compiling VB program to run in Dos

Status
Not open for further replies.

DebG

Programmer
Jun 29, 2000
4
US
I'm trying to compile a VB6 program that will run as a Dos program.  This program requires input from the dos screen.  When I run the .exe the program runs but I can't seen the dos session. Is there something I need to do to compile the program so that it will start a DOS session?
 
you cannot write a DOS console executable in any VB language except for VB-Dos(version 1, they also made a win3.1 version of v1, I think I have vb-dos stored on one of my old floppies, it's like Qbasic with an ANSI visual interface) <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
but, on most win98 machines, you run dosprmpt.pif, that'll start a dos window, in NT I thin you run command.com <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
Click the search tab, type &quot;Console Applications&quot; in the key-word search and you will find a good discussion on writing a console application with VB. Edderic posted a fine example on 01/29/00. <p> <br><a href=mailto: > </a><br><a href= plain black box</a><br>
 
I've created a FAQ called &quot;How do I run and control a DOS console?&quot; (from Edderic's post that Alt255 mentions above) which goes some way to answering your question. It doesn't, however, cover getting input from a DOS console into a VB program.<br><br>I hope it's of some help.<br> <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top