Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Forged on June 28, 2004, 05:02 PM

Title: dos
Post by: Forged on June 28, 2004, 05:02 PM
Is there a way to make a program run in the cmd.exe as opposed to a standard form?
Title: Re:dos
Post by: Spht on June 28, 2004, 05:51 PM
Quote from: Forged on June 28, 2004, 05:02 PM
Is there a way to make a program run in the cmd.exe as opposed to a standard form?

Are you asking how to launch the command prompt?  If so, Shell cmd.exe is one way.

Or are you asking how to launch your program from the command prompt?  If so, you posted in the wrong forum, but start cmd.exe and type <Path of program><Filename> (ie, C:\Misc\Project1) or navigate to the folder of the program and type its filename.
Title: Re:dos
Post by: MyndFyre on June 28, 2004, 06:19 PM
I think he wants to know how to make a console program.
Title: Re:dos
Post by: Stealth on June 28, 2004, 07:05 PM
This has been talked about before, I'm not sure where. Quite a ways back. Try the search feature. IIRC, the answer was "not in VB".
Title: Re:dos
Post by: Banana fanna fo fanna on June 28, 2004, 07:54 PM
You could, but why?

See you later, I'm going to sail to Europe in a canoe.
Title: Re:dos
Post by: Dyndrilliac on July 02, 2004, 06:47 PM
I wasn't aware making Console Applications was available in Visual Basic, I always used C++.
Title: Re:dos
Post by: Tuberload on July 02, 2004, 07:14 PM
www.planetsourcecode.com (http://www.planetsourcecode.com) Search for "Console" in the Visual Basic section.

HTH

Edit: Got rid of search query to fix the table stretching.
Title: Re:dos
Post by: Dyndrilliac on July 02, 2004, 07:30 PM
You made the page deformed it's so long, use [url] tags.
Title: Re:dos
Post by: Tuberload on July 02, 2004, 08:49 PM
Quote from: Dyndrilliac on July 02, 2004, 07:30 PM
You made the page deformed it's so long, use [url] tags.

I did use url tags, k thanks.  :P
Title: Re:dos
Post by: hismajesty on July 02, 2004, 10:52 PM
iirc, all the pscode ones are mock console apps. Try a different language (such as vb.net)
Title: Re:dos
Post by: Adron on July 03, 2004, 04:42 AM
AllocConsole might work. Or tweaking the exe, changing the headers to console app.