Execute external Programm with passing it Parameters ? lazarus / 21-General ---------------------------------------------------------------------- Weitentaaal · 2021-01-29 07:36 Hello Can i Use TProcess.CommandLine(#.exe param1 param2) like that ? or is there some other way to execute external executables with params ? Thanks for any reply ---------------------------------------------------------------------- dsiders · 2021-01-29 07:44 Quote from: Weitentaaal on January 29, 2021, 08:36:14 amHello Can i Use TProcess.CommandLine(#.exe param1 param2) like that ? or is there some other way to execute external executables with params ? Thanks for any reply Is there something that the docs did not cover? https://www.freepascal.org/docs-html/current/fcl/process/tprocess.html https://www.freepascal.org/docs- html/current/fcl/process/tprocess.executable.html https://www.freepascal.org/docs- html/current/fcl/process/tprocess.parameters.html ---------------------------------------------------------------------- lucamar · 2021-01-29 07:47 You can but CommandLine is deprecated and will probably dissapear soon. Instead, you should use Executable and Parameters. See the FCL documentation, and the TProcess section in the wiki page on Executing External Programs to see them in use. If for some reason you have to start from a full command line, you can find a couple helpful functions in LazFileUtils: SplitCmdLine() and SplitCmdLineParams() HTH! ---------------------------------------------------------------------- Weitentaaal · 2021-01-29 07:57 Thank You Guys ---------------------------------------------------------------------- marcov · 2021-01-29 09:50 And see if Runcommand satisfies your needs before rolling your own.