Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2021-11

Asteroids in Pascal

5 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Евгений Кадисов
to Graeme Geldenhuys

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

вс, 21 нояб. 2021 г. в 14:18, Graeme Geldenhuys via lazarus <

Show quoted text 16 lines
: On 2021-11-09 6:32 p.m., Anthony Walter via lazarus wrote: > I've included a copy of the entire game logic code. Check it out here: Such a cool game. :-D Thank you for sharing. Regards, Graeme -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20211122/f201564f/attachment.html>

Reply by email

Bo Berglund
to Евгений Кадисов
??????? ??????? 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

Reply by email