[Lazarus] Mac OS X : Using TProcess to launch Unix command to Copy a Directory

Mattias Gaertner nc-gaertnma at netcologne.de
Mon May 19 22:19:42 CEST 2008


On Mon, 19 May 2008 20:26:43 +0100
Dominique Louis <dominique at savagesoftware.com.au> wrote:

> Hi all,
>    I'm passing the following command to a TProcess instance...
> 
> cp -R /SomePath/MyGame.app /SomePath/MyNewGame.app
> 
> via it's command line property, but it did not work.

Did you try the full filename?

FindDefaultExecutablePath('cp')+
' -R /SomePath/MyGame.app /SomePath/MyNewGame.app'

 
> I then tried fpsystem, passing it the same string and it also fails
> with a 16384 error, which I've spent the last half hour searching for
> on Google, but it does not appear anywhere.
> 
> So any help would be greatly appreciated.


Mattias



More information about the Lazarus mailing list