Straight from the DB Help files:
COMMAND LINE COMPILER
If you prefer to use an external editor to edit your programs, you can use the command line compiler. The command line compiler allows you to compile, run and build executables without entering DarkBASIC.
1. Compiling Externally
DB.EXE -c test.dba
2. Running Externally
DB.EXE -x test.dba
3. Building An Executable Externally (no media)
DB.EXE -b "small.exe" test.dba
4. Building An Executable Externally (with media)
DB.EXE -f "large.exe" test.dba
5. Using Relative and Absolute Paths
C:\Program Files\Dark Basic Software\Dark Basic\DB.EXE -f "d:\mywork\large.exe" test.dba
When using relative paths, ensure your current directory is the project directory containing the DBA program. Your current directory will be used to write the final executable and DBCompile.LOG file. You can override this behaviour by using Absolute paths when asked for a filename in the command line. The DBCompile.LOG file contains any error messages, or completion strings returned by the compiler. The file will also include the line number at which the syntax/runtime error occurred.
Cya
Sx2