I want to run recursively through a directory of *.mdb
files and search them to see which ones have a specific linked table.
These files are secured using several *.mdw
files. I did not write any of them, but I am their maintainer.
I've found a way to do this, but it's too interactive; I need it to be non-interactive; since some of these *.mdb
s I'm searching use an Autoexec macro.
From what I understand executing an Autoexec macro can be avoided if one holds the SHIFT key while opening them; however I use the command line in my macro to open these files, and there doesn't seem to be a way to hold the shift key.
I've found another example, which does allow you to hold down the shift key to avoid the Autoexec macro (see Bypassing Startup Settings When Opening a Database), but which does not allow you to unlock the database with an *.mdw
file, because the OpenCurrentDatabase() method does not have a parameter for an *.mdw
file