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
BankTree Personal Finance Automated Backup
-
- Site Admin
- Posts:78
- Joined:Sat Jun 18, 2005 12:18 am
Backup batch file
I have tried using the backup batch file, but I get this error message.......
"Error in saving files. Bad file name or number"
"Error in saving files. Bad file name or number"
-
- Site Admin
- Posts:78
- Joined:Sat Jun 18, 2005 12:18 am