I have a commandline invocation of MS Access like so:
%Programfiles%\Office11\msaccess.exe
How can I eliminate the “Office11” part so that the resulting invocation executes whatever version of MS Access that is installed? I have to run this on commandline so the option of using Start > Run dialog is not applicable.
You can read the registry to find the folder where MSACCESS.EXE is located. Here is a VBScript example.