Filecopy...True/False

J

John J.

I'm writing a critical routine that copies files within a loop. I'm using
FileCopy but I don't see a way to check whether the FileCopy action has been
successful. I was hoping for a
if FileCopy then
.....
endif
but it's not there. Trapping for all kinds of error doesn't seem very
elegant either.

What approach should I take? Or is there a better method to do this?

Thank you,
John
 
J

John J.

John J. said:
I'm writing a critical routine that copies files within a loop. I'm using
FileCopy but I don't see a way to check whether the FileCopy action has
been successful. I was hoping for a
if FileCopy then
....
endif
but it's not there. Trapping for all kinds of error doesn't seem very
elegant either.

What approach should I take? Or is there a better method to do this?

Found it:
http://myaccesstips.com/Functionality/FileSystem.html
 
Top