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

    • So what am I quoting from them? I never listened to what Farage or his cronies said. I wanted the U.K to leave the E.u years before the referendum and it had nothing to do with Farage and his cronies. So what country do you live in? Did we work much better together? We were always at logger heads with the E.U because we disagreed with them so much. Maggie was always on at them. I would have thought the E.U was glad to get rid of us as we stopped the integration or made it a two tier. Now without us they can integrate more. I would not have voted out if it was just a trading block and we can still work together on somethings.
    • MPC-BE 1.9.0 by Razvan Serea Media Player Classic - BE is a free and open source audio and video player for Windows. Media Player Classic - BE is based on the original "Media Player Classic" project (Gabest) and "Media Player Classic Home Cinema" project (Casimir666), contains additional features and bug fixes. The BE mod (Black Edition Mod) is a skinned version of Media Player Classic Home Cinema, much better looking than the plain old MPC. MPC-BE 1.9.0 changelog: Splitters Fixed crashes in some situations. AudioSplitter Added support for the RF64 format. Fixed reading of channel layout for some WavPack files. Added support for ID3 tags for Wave64 files. Unknown Wave64 chunks are now ignored. AviSplitter Added support for 'y408' video. Improved support for 'HEVC' video. FLVSplitter Added support for VVC video. MP4Splitter Improved handling of corrupted files. MatroskaSplitter Expanded support for V_UNCOMPRESSED video codecs. Fixed support for frame rotation (ProjectionPoseRoll). Improved support for "V_MS/VFW/FOURCC / HEVC". MpcDvdVideoDecoder Fixed conversion to YUY2. Fixed display of menus for some DVD-Videos. RoQVideoDecoder Output in NV12 and YV12 formats is allowed. Full range is used. MPC Video Decoder RGB32 format will be output as a top-down bitmap by default. Added support for the "IID_MediaSideDataDOVIMetadataV2" interface. Removed support for the deprecated "IID_MediaSideDataDOVIMetadata" interface. Fixed retrieving the name of the video adapter when using NVDEC. Fixed crashes in some situations. MPC Video Converter Added support for AYUV video format. MpcAudioRenderer Improved input format validation. Optimized retrieval of supported formats for exclusive mode. Added the "Keep audio device active when paused" setting. Fixed crashes and freezes in various situations. Subtitles Added the ability to open the properties of an external subtitle renderer in the "Subtitles" settings panel. Fixed external subtitle connections for VSFilter. Fixed a crash when rendering PGS/SUP subtitles when using AVX2. YouTube Improved support for yt-dlp. The built-in YouTube parser is no longer used. Player The HTTP read strategy has been changed. If the playlist contains one entry, more key combinations can be used to control the player (jump through chapters, adjust volume). Improved support for reading ASX playlists. The translation of the MediaInfo report for Chinese, Korean and Japanese has been removed. Added blocking of 32-bit filter "PICVideo Lossless JPEG Decompressor" (pvljpg20.dll), because it crashes. Added blocking of the system filter "AVI Decompressor", which will eliminate the crash of VFW codecs. Fixed a rare crash when using the "/slave" key. Fixed a crash when getting a list of fonts for OSD. Added the ability to load an external audio file using hotkeys. Fixed opening a network path starting with \?\UNC. The "Determine duration when adding" playlist setting now works for YouTube video URLs. The "Online media services" settings panel has been redesigned. Added a "Merge files using FFmpeg" option to the file saving dialog. This option is activated when playing multiple streams obtained using yt-dlp. Added loading of local .dpl playlists ("DAUMPLAYLIST"). Fixed a hang when the user closes the player during the URL opening process. Various interface fixes. Installer Updated MPC Video Renderer 0.10.5. Updated MPC Script Source 0.2.17. Added MPC Image Source 0.3.6. Translations Updated Japanese translation (by tsubasanouta). Updated Chinese (Traditional) and Dutch translation (by beter). Updated Romanian translation (by Andrei Miloiu). Updated Hungarian translation (by mickey). Updated Turkish translation (by cmhrky). Updated German translation (by Klaus1189). Updated Chinese (Simplified) translation (by wushantao). Updated Italian translation (by mapi68). Updated Korean translation (by Hackjjang). Updated Chinese (Traditional) (by udfbe). Updated libraries dav1d 1.5.3-6-g04b69f9; ffmpeg n8.2-dev-1857-g4653e68aab; libpng git-v1.6.55-9-g7d52a8087; Little-CMS git-lcms2.18-26-gf739cda; MediaInfo git-v26.05-38-g702c9b7fd; ZenLib git-v0.4.41-91-g073f297; zlib 1.3.2. Download: MPC-BE 64-bit | Portable MPC-BE 64-bit | ~20.0 MB (Open Source) Download: MPC-BE 32-bit | Portable MPC-BE 32-bit Link: Media Player Classic - BE Home Page Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Apple reportedly looks to blacklisted Chinese memory chips as RAM prices climb by Karthik Mudaliar Image via Apple Apple is reportedly trying to get a clearance from the Trump administration to buy memory from ChangXin Memory Technologies (CXMT) to get some relief from soaring DRAM prices. As per a report by the Financial Times, Apple approached the Commerce Department more than a month ago and also spoke to other officials and allies in Washington. For starters, CXMT is a company that's already been placed on the Pentagon's list of Chinese military companies. The Chinese company is the country's top DRAM maker. For Apple, the timing is certainly awkward but not surprising. Tim Cook had recently warned that Apple would have to raise prices because AI companies are buying up large amounts of memory for data centers, and just like that, Apple raised MacBook and iPad prices. Micron also recently revealed that customers have committed billions of dollars to secure memory supply years in advance, which shows us how aggressive securing infrastructure has become. This gives suppliers such as Samsung, SK Hynix, and Micron more leverage, while pushing hardware makers to look for alternatives. CXMT is one of those alternatives, but not the simplest one. Apple has spent many years trying to diversify parts of its supply chain away from China, especially for final assembly, while still depending heavily on Chinese manufacturing and suppliers. Even domestic brands from China are moving towards CXMT and YMTC instead of relying on Samsung, Micron, and SK Hynix. For Apple, though, it would invite more scrutiny than local Chinese companies. For now, this is more like a lobbying effort rather than a confirmed supply deal. There's no official statement from either of the parties. What is clearer, though, is the pressure behind such a request. AI demand has certainly made hardware a bottleneck, and companies are trying everything they can to bring things back to normal, even if that means making politically sensitive choices. Source: Financial Times
    • I did test it a month or so back, but ... the results I expect to be on the first page are not there.
    • Neowin is saying these are good prices? Thats crazy. As others have said they are just ######. Time for big tech to bring down the prices for real not this fake crap.
  • 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
      486
    2. 2
      +Edouard
      220
    3. 3
      PsYcHoKiLLa
      147
    4. 4
      Steven P.
      74
    5. 5
      FloatingFatMan
      70
  • Tell a friend

    Love Neowin? Tell a friend!