DS said:
Its not a split Database. I have the thing working except that the DOS
window won't close. Know of any commands that would close it?
You mean that the batch script launches and your application
closes before the script gets to the Copy command? This
seems rather unlikely to me, but if you've figured out a way
to do that, please let me know how you did it. If you don't
have that degree of synchronization, then you don't really
have it working.
Just because the DOS Copy command doesn't check for the file
being open doesn't mean it can make a viable copy of a your
database. It might work sometimes, but it's quite possible
for the database to be in an indeterminate state when the
copy is made. You will never know if the copy can actually
be used or even if it can be opened, that it has a
consistent set of data. There is a very good reason why the
Access backup procedure (and the FileCopy statement) will
not operate on an open file.
You can close the DOS window by using the Exit command at
the end of the batch script.