1.

Solve : Simple Copy Access Database Batch File?

Answer»

Hi,
I am trying to run a simple copy file batch command which copies an Access database from one location
to another - the file is below:

@echo off
echo Copying Live Black Database.....
pause
copy F:\Database\testdatabase.mdb F:\otherlocation\testdatabase_copy.mdb

...this doesnt work when i run it!
Any HELP will b grand

ta

Melpost error messages....there are no error messages.

I figure that it doesnt work because the database is copied to the location specified :-?

I tried copying the code into the MS-DOS prompt, I get a syntax error when I try and run it.When troubleshooting a batch file, your best bet is to turn echo on. This will allow you to see how each STATEMENT is resolved as the file runs.

Just my 2¢ 8-)Try running the MAIN line from a command prompt to see what happens. Like:
copy F:\Database\testdatabase.mdb F:\otherlocation\testdatabase_copy.mdb
Post back any output you get.hello all
Ive managed to get it to work - I needed to put the path LOCATIONS in double quotes - works fine now
Thanks for all ur help



Discussion

No Comment Found