|You can write programs using either the interpeter (gwbasic.exe) or a text editor (notepad, or, my preference, EDIT). Anyway, without a compiler, you need gwbasic.exe to run the program: GWBASIC mypgrm|
(The program will launch into execution immediately unless you put a STOP statement at the top of the program). You can save a program (from within the interpreter) as either ascii or "tokenized" format (default). To save as ascii:
You can compile the program using BC.EXE (which comes with Qbasic or QuickBasic suite, I beleive, but it can be downloaded). You will also need "link.exe" and "brun45.lib" to make it fully executable. There are options for both BC and Link, but I forget what the BC options are, and it doesn't appear to have a -? or "help" function. Here's the options I use to eliminate prompting:
BC /X /E /O %1 %1.OBJ %1.LST
But BCOM45.LIB (ref'd in line 3) is not always needed for the program to run as an executable, and it will make your .exe much larger. I guess it just depends on what-all your program does, whether it needs that library or not. (Link /help gives a list of options, but doesn't explain them). Most gwbasic programs are runnable as qbasic, and some qbasic programs will run as gwbasic as long as you add line numbers to every line (including comments). The library, BRUN45.LIB, IS necessary, but not explicitly called for by Link. I would just download the whole suite so you've always got what you need.