Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am in WAY over my head on this one. I used a macro in MS Access to automate a process and am using a batch file to run it every 4 hours. Problem is, after the process finishes in Access, I need the Access window to close so it's not cluttering up my screen.
I have tried the taskkill command, and it works from the command prompt, but not in a batch file. What am I doing wrong? When explaining, please explain step by step like I'm in kindergarten. All this stuff is way over my head. I'm just surprised I've gotten this far!
ECHO OFF
E:
cd\Meeting Preparation Info\EMO Info\Marketing Reports
ERASE *.*/Q
PATH = C:\Program Files\Microsoft Office\Office\;C:\Windows\Command
REM
START /WAIT msaccess.exe "E:\Meeting Preparation Info\Marketing Leads Database.mdb" /x "Report Snapshots"
TASKKILL /F /IM msaccess.exe /T
EXIT

try to start without the wait switch, the wait switch basically waits for the termination
START msaccess.exe "E:\Meeting Preparation Info\Marketing Leads Database.mdb" /x "Report Snapshots

![]() |
slow internet over LAN
|
BAD_POOL_CALLER error?
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |