[Gambas-user] Copying a folder and subfolders

Fabien gambasfr at ...11...
Mon May 2 13:10:57 CEST 2005

> Message du 01/05/05 14:39
> De : "neil lewis" <neil at ...233...>
> A : gambas-user at lists.sourceforge.net
> Copie à : 
> Objet : [Gambas-user] Copying a folder and subfolders
> Hi All,
> I'm sure it's fairly trivial, but here goes.
> I need to copy the contents of a folder which may include subfolders 
> (and maybe even sub-subfolders).
> The notes for COPY say it can't be used recursively, so what's the best 
> way to do this?
> I've checked the manual and the wiki and so far I can find no examples 
> or suggestions.

use this command :

sDest as STring
sFrom as STring

EXEC("cp", "-R", sfrom, sdest)

Fabien Bodard

More information about the User mailing list