Computing.Net > Forums > Windows XP > Close program w/ a batch command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Close program w/ a batch command

Reply to Message Icon

Name: amandambrooks
Date: May 12, 2004 at 05:33:31 Pacific
OS: XP Professional 2002
CPU/Ram: 2.66 GHz; 504 MB RAM
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: cino
Date: May 12, 2004 at 08:39:54 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More


slow internet over LAN BAD_POOL_CALLER error?



Post Locked

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


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Close program w/ a batch command

Kill pricesses with a batch command www.computing.net/answers/windows-xp/kill-pricesses-with-a-batch-command/54615.html

2 batch q's: close apps & dial isp. www.computing.net/answers/windows-xp/2-batch-qs-close-apps-amp-dial-isp/70154.html

How to close cmd window from batch? www.computing.net/answers/windows-xp/how-to-close-cmd-window-from-batch/94584.html