Quote:
Originally Posted by ncsthbell
Right now my 'Test.bat' file contains the following statements:
- COPY C:\Testdb.mdb, T:\Testdb.mdb
Firstly, I would remove the comma (,) from the command. That is incorrect syntax and may cause problems (May be an irrelevant typo of course too).
Quote:
Originally Posted by ncsthbell
are you suggesting trying instead?
Fundamentally yes.
Quote:
Originally Posted by ncsthbell
Not sure I understand about the Cmd file. I have never used one before. Would the cmd file initiate the copying?
If, after fixing your .BAT file you were to rename it to Test.Cmd, then you could say instead :
I would also consider adding PAUSE lines before and/or after the COPY to allow you to synchronise the copy after the database has been closed, as well as to allow you to see that it had completed ok.
Possibly something like :
Test.Cmd - PAUSE
-
COPY C:\Testdb.mdb T:\Testdb.mdb
-
PAUSE