Solved

batch file to kill all quickbooks processes

Posted on 2014-02-14
4
724 Views
Last Modified: 2014-02-14
There is a bug in QuickBooks 2011 (and other versions) networking which requires that, if a data file exists on another machine (a NAS in this case), you must kill all processes that begin with "QB" before starting quickbooks in order to avoid an error.

Is there a way to do this programmatically?  something like unix's killall(1) but for windows would be good for this.
0
Comment
Question by:1_21gigawatts
  • 2
4 Comments
 
LVL 14

Assisted Solution

by:comfortjeanius
comfortjeanius earned 250 total points
Comment Utility
You can use this in your batch file

taskkill /f /im <process name>

Open in new window


save the file with the .bat extension
0
 
LVL 28

Accepted Solution

by:
becraig earned 250 total points
Comment Utility
taskkill /F /im QB*

you can loop this for multiple computers if need be

for /f % in (serverlist.txt) do psexec \\% cmd /c taskkill /F /im QB*
0
 
LVL 14

Expert Comment

by:comfortjeanius
Comment Utility
Plus with the batch file you can make a schedule task, How to schedule a Batch File to run automatically in Windows 7 | 8 plus with a schedule task you can deploy thru Group policy , Configure a Scheduled Task Item
0
 

Author Closing Comment

by:1_21gigawatts
Comment Utility
Taskkill, huh. I never knew that existed. Points to you both, comforjeanius for being first, and becraig for the more complete syntax.

Thanks, folks.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I recently purchased an HP EliteBook 2540p notebook/laptop. It has two video ports on it – VGA and DisplayPort. HP offers an optional docking station for the 2540p that also has both a VGA port and a DisplayPort. There are numerous online reports do…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now