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

    • AltSendme 0.4.1 by Razvan Serea AltSendme is a minimal, cross-platform application designed for fast, secure, and private peer-to-peer file transfers. It allows users to send files or entire directories directly between devices without relying on cloud servers, accounts, or any personal information. Everything is encrypted end-to-end using modern protocols like QUIC and TLS 1.3, ensuring both strong security and low-latency performance. Transfers are verified with BLAKE3 for data integrity, and interrupted downloads automatically resume, making the experience reliable even on unstable connections. You can transfer anything—images, videos, documents, and more. Integrity checks are performed on both ends, so your files are automatically verified for correctness during both sending and receiving. AltSendme works seamlessly across local networks or long-distance links, capable of saturating multi-gigabit connections for extremely fast delivery. With built-in NAT traversal and encrypted relay fallback, it connects devices almost anywhere. The app integrates with the Sendme CLI and will soon support mobile and web platforms. Fully free and open-source, AltSendme offers a lightweight, privacy-first alternative to traditional cloud-based services, removing size limits, upload costs, and unnecessary data exposure. AltSendme 0.4.1 changelog: Release Highlights Self-hosted relays: Run your own iroh relay so transfers don't rely on public infrastructure. Includes a full deployment template in deploy/relay/ with Docker Compose for a VPS and configuration examples for production use. Fly.io support: One-click deploy template for Fly.io, including a quick-start config (fly.dev.toml) for testing without a custom domain, plus production setup with Let's Encrypt and your own hostname. Relay settings UI: New Settings → Network panel to choose how AltSendme connects: automatic public relays, custom self-hosted URLs (with optional auth token), or disabled. Test connections, verify latency, and see live relay status in the footer. Disable relays: Turn off relay servers entirely when you only need same-network transfers (e.g. LAN). Direct connections only. No relay hop required when devices can reach each other. Android graduates from beta: Android is now part of the regular release cycle alongside desktop. APKs ship with each version (universal, arm64, and armv7). Other improvements Private relay access control via shared auth token Relay fallback notifications when a custom relay is unreachable Broadcast mode toggle in sharing settings Android release build fixes (split-per-ABI APKs, universal APK preservation) UI polish: mobile safe-area insets, dropzone layout, transfer progress animation Bug fixes for minification-related serialization issues and system tray icon loading What's Changed feat(relay): add relay status functionality and settings UI (a120cdf) feat(relay): implement custom relay server configuration and verification (51276c7) feat(relay): add configuration for private relay access and enhance observability features (48fbabf) feat(relay): enhance relay URL validation, display connection status (d4fffa0) feat(relay): add RelayChangeGuard component and enhance relay-related translations (16ba514) feat(broadcast): add toggle setting for broadcast mode in sharing UI (ca6d977) fix(relay): correct QUIC discovery port, pin image, templatize fly.dev (52a2ba5) fix: More broken serialization due to minification (67491a9) fix(android): preserve true universal APK across per-ABI builds (e9f256f) fix(ui): conditional safe-area insets padding on mobile (1182f0e) refactor(transfer): CircularRing component animation fix (944572b) chore(android): drop x86 and x86_64 release APKs, keep universal+arm64+armv7 (34ada0b) Download: AltSendme 0.4.1 | ARM64 | ~9.0 MB (Open Source) Download: AltSendme for MacOS | Android Links: AltSendme Home Page | GitHub | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • You are mostly right about the ephemeral nature of it. As I mention in the article, if you dont add a second device or take a backup of your account before uninstalling it, then yes you will lose access to your account. That said, in terms of actual user experience when you sync multiple devices your message history carries across and there's also a Saved Messages chat like there is on Telegram to send messages and attachments between your installs. But yh, what you point out are correct and its not trying to emulate Messenger or Telegram.
    • OK so SearXNG is a meta search engine that you can install locally or use via a public instance. It scrapes other search engines which you choose and then sorts the results. Not as complicated as multiple relays
    • The only difference here is that you think you came up with these reasons. You didn't. These age old fearmongering lies (that were NEVER true) were funded by and the anger stoked by Putin through proxies like Farage (and later in the USA, Trump) and filtered down through the skinheads, Neonazis, etc. until it reached the uninformed, ignorant, and gullible -- never realizing they were being played for fools against their own best interests. Even now, despite all of the EVIDENCE proving that Brexit was a terrible mistake for ALL citizens of the UK and that its supporters were tricked by Putin's proxies into sabotaging their own nation, you're still here defending these well-known lies as if they were ever true. Not only are they not true. They NEVER were. So, when are you going to realize that you were lied to and actually get angry at the liars and charlatans who lied to you, instead of blaming the innocent people they lied to you about?
    • Dupe of "Microsoft further improving Windows 11 Taskbar with latest builds", published <20 minutes apart
  • Recent Achievements

    • 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
    • One Year In
      bernmeister earned a badge
      One Year In
    • Week One Done
      Scoobystu earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      495
    2. 2
      +Edouard
      225
    3. 3
      PsYcHoKiLLa
      152
    4. 4
      Steven P.
      75
    5. 5
      FloatingFatMan
      71
  • Tell a friend

    Love Neowin? Tell a friend!