Execute file? lazarus / 1-Linux ---------------------------------------------------------------------- orktes · 2005-03-06 13:29 What command should I use to execute an external program with commandline parameters? In Delphi it was ShellExecute(Handle, 'open', PChar(file), PChar(cmd), nil, SW_SHOW);. ---------------------------------------------------------------------- Almindor · 2005-03-06 23:04 Shellexecute should work, altho TBH I never used it(try locating it's unit you probably need it in the uses section) You can also use a TProcess: uses Process; var Proc: TProcess; begin   Proc:=TProcess.Create(nil);   Proc.CommandLine:='whatever';   Proc.Execute;   Proc.Free; end; ---------------------------------------------------------------------- Marc · 2005-03-07 13:18 Where TProcess in platform independent (and ShellExecute not) ---------------------------------------------------------------------- Anonymous · 2005-03-13 13:13 Wooohooo THANKS!! ---------------------------------------------------------------------- Lightning · 2005-03-15 20:26 I used ShellExecute too and didn't get into trouble, others use ShellExecute on win and shell on *nix I think anyone uses what he thinks is nicer, i think a function is nicer than a component to run a process.