[Lazarus] Running external programs....

Michael Van Canneyt michael at freepascal.org
Thu Feb 2 22:17:17 CET 2012



On Thu, 2 Feb 2012, William Oliveira Ferreira wrote:

> i was reading this article:
> http://wiki.lazarus.freepascal.org/Executing_External_Programs
> 
> and now i have 2 questions:
> * is sysutils.executeProcess full cross-platform?

Yes.

> * why not not suggest sysutils.executeProcess to replace WinExec/ShellExecute as it needs less lines to use like WinExec/ShellExecute?

Because ShellExecute accepts documents and files and will open the correct program to process these files.
ExecuteProcess only starts a program.

It can probably replace WinExec.

Michael.





More information about the Lazarus mailing list