[Gambas-user] COPY file if "file allready exist"

Rolf-Werner Eilert eilert-sprachen at ...221...
Thu Feb 9 08:32:30 CET 2012


Am 08.02.2012 22:14, schrieb abbat:
>
> Sorry, if it's abasic question (but GAMBAS is Almost mean BASIC :-))
>
> How to copy a file if it is already exist?
> And do not get any error.
> Overwrite
>
> Tnx.

You can verify with

If Exist() Then

before you copy and decide what to do with it (either simply KILL or 
rename the file, which is more complicated).

Rolf





More information about the User mailing list