Sign in Join

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

Mailing lists / lazarus / 2012-02

Running external programs....

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

William Oliveira Ferreira

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?
* why not not suggest *sysutils.executeProcess *to replace WinExec/ShellExecute as it needs less lines to use like WinExec/ShellExecute?

________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120202/6dcf5eca/attachment.html>

Reply by email

Michael Van Canneyt
to William Oliveira Ferreira
William Oliveira Ferreira wrote 5 lines
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.

Reply by email

William Oliveira Ferreira
to Michael Van Canneyt

cool, thanks... =D
________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o

2012/2/2 Michael Van Canneyt

Show quoted text 34 lines
On Thu, 2 Feb 2012, William Oliveira Ferreira wrote: i was reading this article: > http://wiki.lazarus.**freepascal.org/Executing_**External_Programs<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. -- ______________________________**_________________ Lazarus mailing list .**freepascal.org http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120202/b6d06244/attachment.html>

Reply by email