UnThreaded | Threaded | Whole Thread (1) | Ignore Thread Prev | Next
Author: OceanEmerald Three stars, 500 posts Add to my Favorite Fools Ignore this person (you won't see their posts anymore) Number: of 1874  
Subject: FAQ: How to backup your Money backup files Date: 8/16/2004 10:20 PM
Post New | Post Reply | Reply Later | Create Poll . Report this Post | Recommend it!
Recommendations: 1
Save the following script to a file called "_myMoneyBackup.bat" and follow the in-line instruction.

------------

@echo off


rem =====================================================================
rem == Author: OceanEmerald
rem == Last Modified: 8/16/2004
rem == Purpose: Mastering Microsoft Money FAQ on the Fool board
rem ==
rem == this task is scheduled to run every time you login
rem == for creating backup of your money backup files
rem == use WIN XP scheduler to access this
rem == (do not move this file once the scheduler is set!)
rem ==
rem == change the myDir to the location of your Money folder
rem =====================================================================



set myDir = "C:\My Money"

cd %myDir%

for /F "tokens=1-4 delims=/ " %%i IN ('date /t') DO (
set DT_DAY=%%i
set DT_MM=%%j
set DT_DATE=%%k
set DT_YY=%%l
)




rem =====================================================================
rem == my active money file is called "current.mny" and I use Money's
rem == backup feature to create a backup file called "current-backup.mny.mbf"
rem ==
rem == the reason we don't want to backup your current money file is that
rem == it may be the first file you use when you log on and thus lock the file
rem == since the backup file is the same as the source file when you last logged
rem == out so make a backup of your backup file does the same thing.
rem ==
rem == the following statement makes a copy of the source file
rem == "current-backup.mny.mbf" and name it as
rem == "current-backup.20040816Mon.mbf" <-- assuming today is Monday Aug 16th, 2004
rem == so there will be at most one backup of your backup file each time
rem == you login to save disk space until the date changes. You may leave certain
rem == copy of these files before you clean them up.
rem ==
rem ==
rem == to truly be save you want to save the backup of the backup file
rem == on a physically separate hard disk:
rem ==
rem == assuming your primary volume is at C:\ and your backup hard drive
rem == is the E:\ drive, the following statement will be
rem == copy "current-backup.mny.mbf" "E:\Backup\current-backup.%DT_YY%%DT_MM%%DT_DATE%%DT_DAY%.mbf" /y
rem ==
rem == add the word "pause" to the end of the script to test this script
rem == remove it when done
rem ==
rem == *** creating a scheduled task in Windows XP
rem == 1.) Select "Start" --> "Programs" --> "Accessories" --> "System Tools"
rem == --> "Scheduled Tasks"
rem == 2.) Click on "Add Scheduled Task"
rem == 3.) Click on "Next" when the Scheduled Task Popped up
rem == 4.) Click on "Browse" and find the batch file and select "Open"
rem == 5.) Type a name for this task such as "Backup Money backup files"
rem == 6.) Check "When I log on" then select "Next"
rem == 7.) Enter the user info and select "Next" then "Finish"
rem =====================================================================


copy "current-backup.mny.mbf" "Backup\current-backup.%DT_YY%%DT_MM%%DT_DATE%%DT_DAY%.mbf" /y


pause


Post New | Post Reply | Reply Later | Create Poll . Report this Post | Recommend it!
Print the post  
UnThreaded | Threaded | Whole Thread (1) | Ignore Thread Prev | Next

Announcements

Post of the Day:
Macro Economics

Intel's Broadwell Potential
What was Your Dumbest Investment?
Share it with us -- and learn from others' stories of flubs.
When Life Gives You Lemons
We all have had hardships and made poor decisions. The important thing is how we respond and grow. Read the story of a Fool who started from nothing, and looks to gain everything.
Community Home
Speak Your Mind, Start Your Blog, Rate Your Stocks

Community Team Fools - who are those TMF's?
Contact Us
Contact Customer Service and other Fool departments here.
Work for Fools?
Winner of the Washingtonian great places to work, and "#1 Media Company to Work For" (BusinessInsider 2011)! Have access to all of TMF's online and email products for FREE, and be paid for your contributions to TMF! Click the link and start your Fool career.
Advertisement