We use
execute file "DB.exe", "-CHAR$ filename", ""
On the place of
CHAR$, you have to type c(
compile), x(e
xecute), b(
build exe) or f(build
final).
A few example:
If I had
Program.dba file containing this:
print "Hello world"
print wait key
print end
then
execute file "DB.exe", "-c Program.dba", "" would compile the file (creates a .txt log. Writes Compilation succesful when succeeded)
execute file "DB.exe", "-x Program.dba", "" would execute the file. (Runs it)
execute file "DB.exe", "-b Program.dba", "" would build that file (makes an exe without the media.
execute file "DB.exe", "-f Program.dba", "" would build the final exe. With media.
It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.