1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
program Project1; {$mode objfpc}{$H+} uses Classes, SysUtils, Process { you can add units after this }; var p: TProcess; begin try p := TProcess.Create(nil); p.Active := true; except on eprocess do begin writeln('ok'); halt(0); end; end; halt(1); end.