我尝试了这些,但它们无法正常工作(Access打开,但它不会等待:
start "C:\program files\Microsoft Office\Office\MSACCESS.EXE" filename.mdb
start /WAIT "C:\program files\Microsoft Office\Office\MSACCESS.EXE" filename.mdb
start /W "C:\program files\Microsoft Office\Office\MSACCESS.EXE" filename.mdb
start filename.mdb
start msaccess.exe filename.mdb
答案 0 :(得分:2)
start /WAIT msaccess.exe filename.mdb
诀窍。
我不知道为什么添加完整路径会导致失败。
答案 1 :(得分:1)
PATH="C:\Program Files\Microsoft Office\OFFICE11\; C:\Windows\Command"
START /WAIT MSACCESS.exe "path to mdb file" /X "name of macro"