?
Solved

batch file to kill all quickbooks processes

Posted on 2014-02-14
4
Medium Priority
?
839 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 14

Assisted Solution

by:comfortjeanius
comfortjeanius earned 1000 total points
ID: 39859875
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 29

Accepted Solution

by:
becraig earned 1000 total points
ID: 39859885
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
ID: 39859904
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
ID: 39859906
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

777 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