REM BackupFiles Script takes back up at the time of upgrade
REM %1 Backup directory
REM %2 INSTALLDIR directory


echo BACKUPDIR: %~1 
echo INSTALLDIR: %~2


echo Starting backing up files in to %~1
rd /S /Q "%~1"
REM Backup database
mkdir "%~1"
copy /Y "%~2\VMData.mdb" "%~1\"
echo Copied back up files in %~1
