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!
 

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

Similar Threads

FileCopy 3
problem with FileCopy function 1
Apply timestamp to BE file 5
FileCopy Problem 9
using filecopy or name statements 6
Filecopy 2
Desktop Shortcut 3
Filecopy...True/False 1

Back
Top