[fpc-pascal] TProcess vs RunProcess()
Lars
noreply at z505.com
Sun Jan 29 23:53:36 CET 2017
On Sun, January 29, 2017 1:36 pm, Santi wrote:
> Maybe ExecuteProcess is calling some kind of shell,
> Freepascal developers will tell.
>
To call the shell you send in cmd /C
FpSystem does this, but it's on unix
Calling the shell is useful for not requiring absolute paths to
commands... which is why I like fpSystem...
And to call a dos command you need a shell like cmd /C because calling a
dos command won't do anything, it's not an exe (there is no DIR.exe file
for example AFAIK).. so to call DIR (same as LS on unix) you need to
invoke a shell.
More information about the fpc-pascal
mailing list