Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kill MSAccess process via batchfile

Tags:

batch-file

I am trying to open MS access have a delay of about 5 seconds then close the application.

With the .bat file below I have the program opening but I can not get it to close after the delay.

@echo off
start /B "Access" "C:\Program Files (x86)\Microsoft Office\OFFICE14\MSAccess.exe"
"G:\Departmental Submissions\Cardiac Rehab\Cardiac Rehab.accdb" 
wait -n 5
TASKKILL /F /IM MSAccess.exe
like image 718
user2347635 Avatar asked Nov 30 '25 09:11

user2347635


1 Answers

the third reply on this indicates that you have to write a startup script to close it....

To get the database to close you need to write a Startup function which controls
all   the events you wish to run and then use Docmd.Quit, 
like image 164
Jim Avatar answered Dec 02 '25 04:12

Jim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!