filecopy

T

Tammy

I am using the filecopy statement to backup a word file.
However, when a new copy if made of the same file, the
file is overwritten... is there any way to avoid this??
 
R

Rick Brandt

Tammy said:
I am using the filecopy statement to backup a word file.
However, when a new copy if made of the same file, the
file is overwritten... is there any way to avoid this??

Use Dir() to first test for the existence of the file before running the
FileCopy.
 
T

TC

Er, use Dir$() to check for an existing version, & if one is there, rename
it to something else with the Name statement?

HTH,
TC
 
T

Tammy

Okay... but I still WANT to copy the file over, I just
want to prevent it from being overwritten??? We are
trying to keep the previous versions for a period of
time. Eventually it will get cleaned up, but we do not
want them deleted immediately. SORRY for the
confusion!!! I wasn't very clear on that!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top