@pictionary
Do you mean executing a dba script by shell or commandline like Caleb1994 is suggesting? If so, take a look in the help folder of your DarkBASIC installation directory. There should be a file labeled
compiler.html . This file describes how to run .dba scripts from a shell or a command line. You could, for example, write a .dba script in notepad and then run it, compile it, even make it into an executable from the command line, a batch file, or from the shell.
But, if your intention is to distribute an executable and have a user run new .dba code from it, you can't really do that directly. You would have to read lines in from the .dba file, parse out the commands, and then run the equivalent code in the exe.
So if you had the command sync on in a .dba file, you'd have to read that line in as a string, parse it out (separate it into identifyable pieces) , and then call the appropriate DBC command(s). For example:
if lower$(stringparsed$)="sync on" then command = 1
select command
case 1 : sync on : endcase
case 2 : etc.
endselect
Enjoy your day.