Any program on a disk can be run as a command, by typing its name (see Running Programs). BASIC-DOS supports two kinds of external commands:
If no extension is specified, BASIC-DOS looks for a COM, EXE, BAT, and BAS file, in that order.
COM and EXE files are loaded and run as in PC DOS, and many programs written for PC DOS 1.x and 2.x work, as long as they don’t rely on features that BASIC-DOS doesn’t support yet (eg, subdirectories). One difference is that BASIC-DOS gives a COM program only the memory it needs (its file size plus at least 1K of heap), rather than all available memory, so that other sessions can use the rest.
When a binary program runs, COMMAND.COM temporarily releases most of its own memory (see COMMAND.COM).
BAT and BAS files are text files containing BASIC-DOS commands and BASIC statements (see BASIC-DOS Programming). The differences between them are:
A BAT or BAS file can run other BAT or BAS files (no CALL command is required) and then continue; each nested BAS file gets its own variables. See Batch Files for how BASIC-DOS batch files differ from PC DOS batch files.
Every BASIC-DOS startup diskette also contains the system files BASDEV.COM (device drivers) and BASDOS.COM (the kernel). These files must not be run.
Copyright (c) 2020-2026 Jeff Parsons Released under MIT License