filecopy

  • Thread starter Thread starter Tammy
  • Start date Start date
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??
 
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.
 
Er, use Dir$() to check for an existing version, & if one is there, rename
it to something else with the Name statement?

HTH,
TC
 
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!
 
Back
Top