BankTree Personal Finance Automated Backup

As of 24th December 2013 version 2.0 is no longer available for purchase. This is a general discussion and self help section for version 2.0, for people to post stuff they have found useful.
Post Reply
BankTree Support
Site Admin
Posts: 78
Joined: Sat Jun 18, 2005 12:18 am

BankTree Personal Finance Automated Backup

Post by BankTree Support » Sat Nov 29, 2008 8:28 pm

To automate the backup of your data files, the following batch file can be used to backup your data on a daily basis.

Copy the following contents to Notepad, and save the file with an appropriate name giving it a .bat file extension. You can then run the batch file when you would like to backup your data. This file will work with both 32-bit and 64-bit windows operating sytems.


:: START

:: This batch file is provided as is with no warranty of any kind for Banktree 2.0.7 and above users

@echo off

:: First check if running 64 bit Windows.
if exist "C:\program Files(x86)\Banktree 2.0\" goto Run64bit


:: 32 bit first we create a new directory for the backup with the current date
if exist "C:\program Files\Banktree 2.0\Backups\%date:~6,4%-%date:~3,2%-%date:~0,2%\" goto Run

md "C:\program Files\Banktree 2.0\Backups\%date:~6,4%-%date:~3,2%-%date:~0,2%\"

:Run

:: then we run the backup:

"C:\program Files\Banktree 2.0\banktree.exe" S PATH="C:\program Files\Banktree 2.0\Backups\%date:~6,4%-%date:~3,2%-%date:~0,2%\"

Exit

:: END Windows 32 bit


:Run64bit
:: 64 bit windows create a new directory for the backup with the current date.

if exist "C:\program Files(x86)\Banktree 2.0\Backups\%date:~6,4%-%date:~3,2%-%date:~0,2%\" goto Run64

md "C:\program Files(x86)\Banktree 2.0\Backups\%date:~6,4%-%date:~3,2%-%date:~0,2%\"

:Run64

:: then we run the backup:

"C:\Program Files(x86)\Banktree 2.0\banktree.exe" S PATH="C:\program Files(x86)\Banktree 2.0\Backups\%date:~6,4%-%date:~3,2%-%date:~0,2%\"

Exit

:: END Windows 64 bit

tpitman
Posts: 1
Joined: Fri Feb 27, 2009 5:11 pm

Backup batch file

Post by tpitman » Sat Feb 28, 2009 9:16 pm

I have tried using the backup batch file, but I get this error message.......

"Error in saving files. Bad file name or number"

BankTree Support
Site Admin
Posts: 78
Joined: Sat Jun 18, 2005 12:18 am

Post by BankTree Support » Sun Mar 08, 2009 12:26 pm

This script is provided as is, it may or may not work with your compuer configuration.

Post Reply