Batch file to close Quickbooks at X time so a backup can take place with a 3rd party backup application.


Recommended Posts

As much as I like Quickbooks (for what it is used for) it's missing a lot of useful and some might argue basic features.  Quickbooks has built into it, the ability to automatically backup your company at X time during the week. The catch is that you have to remember to log off your company in order to have it back up. 

 

You would THINK that the automatic backup would take it upon itself and close the company file and start the backup, NOPE!! 

You would also think they would give you an option to set a time to automatically log off the company file, NOPE! 

You would think they would have an option to tell QuickBooks to open the company selection screen on startup and not try to load the last company file opened, NOPE!

 

*Start off-topic rant* You would also think that when you open up an account in the accounts section in QuickBooks, right click and select "Make a deposit" that you ..oh I dunno WANT TO DEPOSIT THE MONEY INTO THAT ######## ACCOUNT!!" ..but nope, sometimes it selects an entirely different account for you that you then have to drop down and select the account you are currently in. I asked Quickbooks about it in which they pretty much said "You are depositing it wrong" ..you are suppose to right click the account in question in the account screen and select "Make depsosit" *End off-topic rant*

 

It's possible to create a backup yourself which backs up the entire folder containing your company file. When backing up inside QuickBooks it creates 1 single file which includes

 

Information from Statement Writer, CashFlow Projector, Business Planner, custom dictionary and Loan Manager.

 

I personally have Syncback pro setup as a nightly backup with versioning and about 14 of them. Every night it backs up to a network drive, USB drive and Online drive. It also emails me a log if the backup fails.  The issue is unless you log out of your company file the Qbw file does not change in a way the backup program thinks there is anything to backup. It won’t fail, it will run but it doesn't think there is anything to backup.

 

So yesterday I was looking for a way to auto close QuickBooks every night at 12 am. What I found was the command tasskill. The Name says kill but it will only force close can application if you use the /f command which I’m not using. I’m using

 

TASKkILL /IM qbw32.exe

 

/ IM is the same as hitting the X on the application. Once it’s closed I have Quickbooks open back up, and it gets as far as the company file password. That is just enough to change the company file so Syncback pro can back it up every night.  I'm not sure the automatic backup inside QuickBooks can backup while at the company file password screen. This is why is WISH there was an option to tell QuickBooks NOT to load the last company file but just go to the company file selection screen.

 

 

The actual batch file has the following

 

TASKkILL /IM qbw32.exe

TIMEOUT /T 20

cd C:\Program Files (x86)\Intuit\QuickBooks 2018\

QBW32Pro.exe

 

I'm using the 2018 version so if you have a different version you would want to change the version of your folder name. You save that to a notepad document and save it as a .bat file. Then tell the windows machine to run that file every night at X time. 

 

I also went into Quickbooks under backup file/ backup company file/options and unchecked “Remind me to backup when I close my company file”. It that prompt appears as the program is trying to close it will stop and wait for a mouse click.

 

Once a month or so I still do an actual backup from inside Quickbooks.

if you don't want to use a batch file you could always set a task in the Windows Task Scheduler as well. Just another native option that's available for those that want it :)

  • 4 weeks later...

also works:

 

taskkill /fi "WindowTitle eq Quick*" /f /t

 

You could set to launch quickbooks after the job completes as a task to start after backup completes...most backups have the option to do so.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Fake Superman doing the Anti-Trump PR for us, good man !
    • Hello, I am not as familiar with AMD CPUs as I am with Intel's, but as I understand it, that's a mid-range CPU from about three years ago.  I would think it to be fine for everyday casual-type use.  A larger SSD might be better, but with storage prices these days that's a decision that has to be carefully thought about. Regards, Aryeh Goretsky  
    • Ocenaudio 3.19.5 by Razvan Serea  Ocenaudio is a full featured, fast and easy to use audio and music editor. It is the ideal software for people who need to edit and analyze audio files without complications. Ocenaudio also has powerful features that will please more advanced users. To assist ocenaudio development, a powerful toolset of audio editing, analysis and manipulation called Ocen Framework was created. ocenaudio is also based on Qt framework, a well known library for cross-platform development. Cross-platform support ocenaudio is available for all major operating systems: Microsoft Windows, Mac OS X and Linux. Native applications are generated for each platform from a common source, in order to achieve excelent performance and seamless integration with the operating system. All versions of ocenaudio have a uniform set of features and the same graphical interface, so the skills you learn in one platform can be used in the others. VST plugins support Ocenaudio supports VST (Virtual Studio Technology) plugins, giving its users access to numerous effects. Like the native effects, VST effects can use real-time preview to aide configuration. Real-time preview of effects Applying effects such as EQ, gain and filtering is an important part of audio editing. However, it is very tricky to get the desired result by adjusting the controls configuration alone: you must listen the processed audio. To ease the configuration of audio effects, ocenaudio has a real time preview feature: you hear the processed signal while adjusting the controls. The effect configuration window also includes a miniature view of the selected audio signal. You can navigate on this miniature view in the same way as you do on the main interface, selecting parts that interest you and listening to the effect result in real time. Multiselection for delicate editions To speed up complex audio files editing, ocenaudio includes multi-selection. With this amazing tool, you can simultaneously select different portions of an audio file and listen, edit or even apply an effect to them. For example, if you want to normalize only the excerpts of an interview where the interviewee is talking, just select them and apply the effect. Eficient edition of large files With ocenaudio, there is no limit to the length or the quantity of the audio files you can edit. Using an advanced memory management system, the application keeps your files open without wasting any of your computer's memory. Even in files several hours long, common editing operations such as copy, cut or paste happen almost instantly. Fully featured spectrogram Besides offering an incredible waveform view of your audio files, ocenaudio has a powerful and complete spectrogram view. In this view, you can analyze the spectral content of your audio signal with maximum clarity. Advanced users will be surprised to find that the spectrogram settings are applied in real time. The display is updated immediately when altering features such as the number of frequency bands, window type and size and dynamic range of the display. Ocenaudio 3.19.5 changelog: Fixes crashes related to audio devices on Windows (DirectSound and ASIO) Fixes several crashes and memory corruption issues Fixes opening several headerless files at once, which previously dropped all but one Improves batch export by suggesting and remembering the destination folder Fixes accented and non-Latin characters in VST plug-in and compressed-archive file names Adds zstd compression support and updates the archive library Other bug fixes and improvements Download: Ocenaudio 64-bit | Portable | ~40.0 MB (Freeware) Download: Ocenaudio for Linux and Mac OS View: Ocenaudio Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I did think about a Echo show once and it would be useful to see what my cameras see. But my brother got one and I changed my mind. Adverts and not really worth the price just to see my cameras. I have a load of dots and a Echo Gen 4, they will do.
  • Recent Achievements

    • One Month Later
      Excellence2025 earned a badge
      One Month Later
    • Week One Done
      Excellence2025 earned a badge
      Week One Done
    • Week One Done
      flexorcist earned a badge
      Week One Done
    • One Month Later
      Woland13 earned a badge
      One Month Later
    • Week One Done
      Woland13 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      501
    2. 2
      +Edouard
      204
    3. 3
      PsYcHoKiLLa
      145
    4. 4
      Steven P.
      72
    5. 5
      FloatingFatMan
      68
  • Tell a friend

    Love Neowin? Tell a friend!