On 09 Sep 2011, at 13:40, Marco van de Voort wrote:

In our previous episode, michael.vancann...@wisa.be said:

You must remove the quotes around 'outputfile.org':

Status:=ExecuteProcess('/path/to/oggenc',['-Q','-- output=outputfile.org','tempfile.wav']);

While better, this is afaik not required per se, the executing binary can
strip them also while doing cmdline parsing.

I don't know any programs other than shells that would do so. FPC itself doesn't do anything like that either, and hence would complain that it couldn't find a file with such a name (quotes are valid characters in file names, at least on Unix-like OSes).

In general, such things are only done if the parameters are passed on to a shell, because that one will again process quotes (and then it could be required if "outputfile.org" contains spaces).


Jonas

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to