🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.pascal
Article #92569

Re: ExecuteProcess - uruchamianie zewnętrznych programów

#92569
From: Terrmit
Date: Sun, 01 Jun 2008 20:55
20 lines
1462 bytes
Terrmit pisze:
>> Win32/DOS/*nix? Bo jeżeli nie wymagasz cross-platformowości
>> to możesz korzystać z systemowych f-cji.
> Funkcji systemowych wolałbym uniknąć.

W takim razie zastosuj:
http://www.eightminds.com/archives/4

uses Process;

var
   Proc: TProcess;
begin
   Proc := TProcess.Create(nil);
   Proc.CommandLine := ‘tutaj ścieżka+nazwa programu wraz z parametrami’;
   Proc.Execute;
   Proc.Free;
end;

Sławek
Technical Details
Message-ID: <g1v2fk$b0l$1@atlantis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
References: <g1seoj$6o5$1@nemesis.news.neostrada.pl> <g1ur7o$roc$1@news.dialog.net.pl> <g1utm6$ql6$2@nemesis.news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
From: Terrmit <terrmitv@poczta.onet.pl>
Newsgroups: pl.comp.lang.pascal
Subject: Re: ExecuteProcess - uruchamianie
 zewnętrznych programów
Date: Sun, 01 Jun 2008 22:55:59 +0200
Organization: TP - http://www.tp.pl/
Lines: 20
Message-ID: <g1v2fk$b0l$1@atlantis.news.neostrada.pl>
References: <g1seoj$6o5$1@nemesis.news.neostrada.pl> <g1ur7o$roc$1@news.dialog.net.pl> <g1utm6$ql6$2@nemesis.news.neostrada.pl>
NNTP-Posting-Host: fge166.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.neostrada.pl 1212353845 11285 83.13.160.166 (1 Jun 2008 20:57:25 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Sun, 1 Jun 2008 20:57:25 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.14 (X11/20080501)
In-Reply-To: <g1utm6$ql6$2@nemesis.news.neostrada.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit