0

There are two large (5 GB each) DBF files that need to be backed up before a process is run via MS Access. This is in case something gets corrupted.

Right now I am doing two filecopy() commands within the VBA but I suspect it is slow.

What is the best way to perform this backup automatically and efficiently? Can it be done from a batch file or something similar? I cannot install new software.

  • What is leading you to suspect it is slow? Have you compared the speed to some other method of copying the same files (like from Explorer or a command prompt)? – GuitarPicker May 18 '15 at 15:10
  • @GuitarPicker Seems slower than manually selecting both files and pasting copies into the same folder at the same time – user4912610 May 18 '15 at 15:17

1 Answers1

0

Using a batch file here's what you can do:

COPY FILE.DBF B:\Backups
COPY FILE1.DBF B:\Backups

Another way to do it is using the command Esentutl (Windows Vista+)

ESENTUTL /y FILE.DBF /d B:\Backups\FILE.DBF
ESENTUTL /y FILE1.DBF /d B:\Backups\FILE1.DBF
td512
  • 5,031
  • 2
  • 18
  • 41