Making a program in BASIC for command line

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
toast
Forum Newbie
Posts: 1
Joined: Wed May 24, 2006 9:17 pm

Making a program in BASIC for command line

Post by toast »

How do I make my BASIC program be in a dos window when executed? I would like to make it .COM.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It would have to be compiled. It's been years since I've even touched BASIC. Way before compilation of the files was available, so I couldn't tell you how that is done.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

feyd wrote:It would have to be compiled. It's been years since I've even touched BASIC. Way before compilation of the files was available, so I couldn't tell you how that is done.
You must be refering to GW-BASIC or QBasic? I "borrowed" a copy of QuickBasic which came with a compiler... :P

Oh the days :)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Look into http://www.freebasic.net and build your application as a console NOT GUI or DLL, etc...

COM files are all but practically extinct...you may also get confused because M$ introduced a technology called COM (Component Object Model) but these are a far cry from COM executable files...

Anyways...look into that application and start working with console
Post Reply