1.

Solve : Error message when Starting an access mdb?

Answer»

I am running a BAT file which attempts to START a MS Access Database (MDB).

Here is the line of code:
Start /WAIT /min CopyShortcut.mdb

The mdb and the BAT file are in the C:\Windows folder however I am getting a message box which says:
Windows cannot find 'C:\windows\copyshortcut.mdb'. Make sure you typed the name correctly, and then try again.


Why is this happening? What can I do to avoid it?


Thanks in advance for help!I could not get your premise to fail. Check your file associations. Are mdb files associated with the Access application? Is there a path statement in your batch file that overides the system path? What version of Windows are you using? [sigh]

Posting your batch file would be helpful.

Let US know. Here is the code which is in a BAT file located in C:\Windows

================

Echo Off
title FM Software
Cls
Start /wait /min FMCopyShortcut.mdb
Cls
Call FMCleanup.bat

================

When run, the FMCopyShortcut.mdb file does start as it has an autoexec macro which definitely runs.

I have paused before each statement and the following error message occurs on the START statement.

"The system cannot find the file C:\WINDOWS\FMcopyshortcut.mdb."

The FMCopyShortcut.mdb file is also in C:\Windows directory.In your FIRST post:
Quote

Start /wait /min CopyShortcut.mdb


In your next post:
Quote
Start /wait /min FMCopyShortcut.mdb

This may be as simple as a typo. On the other hand:

Quote
When run, the FMCopyShortcut.mdb file does start as it has an autoexec macro which definitely runs

If this is true then the #1 suspect is the macro.

Computers are very unforgiving when it comes to typos.

Good luck. I wish it was that simple....I CHANGED the name since the first post....everything currently says FMCopyShortcut.mdb....i assume nothing is casesensitive in batch files? please keep trying..thanks


Discussion

No Comment Found