Reputation: 99
I have some trouble opening access file from command line.
start "FullPath\Database.mdb" - does nothing
start "C:\Program Files\Microsoft Office\OFFICE14\MSACCESS.EXE" "FullPath\Database.mdb" Opens the file normally
But different computers can have different versions of office, how can i cover all corners here?
Upvotes: 0
Views: 9518
Reputation: 11627
If Access is installed, it usually ensures that the msaccess
executable is available in the system path. Try it right now: hit Win-R, type msaccess
, then press Enter.
So you can leave out the folder path in your command to start Access, and it should work on any computer where Access is properly installed.
Upvotes: 1