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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal