通过批处理文件杀死MSAccess进程 [英] Kill MSAccess process via batchfile

查看:87
本文介绍了通过批处理文件杀死MSAccess进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试打开MS访问并延迟大约5秒钟,然后关闭该应用程序.

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

使用下面的.bat文件,我可以打开程序,但延迟后我无法关闭它.

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

推荐答案

表示您必须编写启动脚本以将其关闭....

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, 

这篇关于通过批处理文件杀死MSAccess进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆