Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft Access 2000 and Batch file / Command Prompt

Status
Not open for further replies.

hats666

Programmer
Feb 9, 2004
4
US
When I try to invoke an Access 2000 database from a batch file, I am running into issues.

In a batch file, I have
start /wait g:\arisdb.mdb

When the batch file is executed, it starts the arisdb.mdb and does what it is supposed to do and then closes the database as expected.

However after the Access database is closed, the following error appears "Cannot find the file 'g:\arisdb.mdb'(or one of its components). Make sure the path and the filename are correct and that all required libraries are available"

The batch file references the access database only once and each time, it is finds and completes the access database step and then the error appears.

Also at the regular command prompt, when I tried
g:\> start /wait g:\arisdb.mdb
or
g:\> start g:\arisdb.mdb
or
g:\> start arisdb.mdb
or
g:\> arisdb.mdb

Each time it finds and opens the database but in the command window has the following error
"The system cannot execute the specified program."

Can anyone please shed some light on this and let me know how this should be resolved.

Thanks,
Hats666








 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top