On Mon, 22 Nov 2021 08:57:51 +0300, ??????? ??????? via lazarus
<lazarus@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

-- 
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to