Thanks Rolf and Willy,
I had exactly the same problem today!
Bruce
--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing
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 s
Example:
File: CopyMe.txt
Location: Userhome directory/MyFiles
Copy to: Userhome directory/MyCopyFiles
DIM sSourcePath, sCopyPath AS String
sSourcePath = User.Home & "/MyFiles"
sCopyPath = User.Home & "/MyCopyFiles"
'First check if file exists
If Exist(sSourcePath & "/CopyMe.txt") THEN
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.
--
View this message in context:
http://old.nabble.com/COPY-file-if-%22file-allready-exist%22-tp33289311p33289311.html
Sent from the gambas-u