[Lazarus] Asteroids in Pascal

Bo Berglund bo.berglund at gmail.com
Mon Nov 22 14:47:17 CET 2021


On Mon, 22 Nov 2021 08:57:51 +0300, ??????? ??????? via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>Hi.
>My operating system is kubuntu 21.04. How can I execute system commands
>from my graphical lazarus program?
>
Example:

RunCommandIndir(exedir, executable, arguments, returnstr,
[poWaitOnExit,poStderrToOutPut,poNoConsole]);

Where:

exedir     = the directory where you want the execution to happen
executable = the program executable file
arguments  = array of string holding the command line arguments
returnstr  = String getting the return message from the executable

Read more by searching for RunCommandIndir and/or RunCommand in the fpc
documentation.

-- 
Bo Berglund
Developer in Sweden



More information about the lazarus mailing list