|
-
Dec 31st, 2011, 01:16 AM
#1
[RESOLVED] Copy files if destinationation folder is empty, etc
Hi,
I have been able to copy the files form one location to another using this code. However, I noticed that if the files as successfully copied in the text file then someone deletes the files they won't be able to restore the files because of the record in the data file "Secussfully copied". Also I need to add functionality to stop the overwritting of files if some of them are newer than the source. This is what I have tried so far:
vb Code:
'copy the files
If copy = "Copy status:" Or Len(Dir(d, vbDirectory)) = 0 Then VBCopyFiles fullpath & "\*", d
However, that doesn't work! Although, had that code working at one stage today but I can't remember what I put to make it work. I also tried using the datadiff to determine if the destinination file was older than the source files and if so leave it and contniue through the rest of the files. However it still kept copying all the source folder over to the new destination regardless.
Hopefully someone understands what I am getting at.
Nightwalker
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|