Hi Guys
Hoping someone can help.
I have a batch file on my pc that backs up the Database on a dily basis (a windows task run at 09:00) at the moment it is pretty basic and I need it to be tidied up.
Then, I need it to check the files have been backed up after and alert me if it hasnt worked, as at the moment the batch file runs and unless im watchign it I cant tell if the files have copied.
Code for the batch file currently used :
Code:
Echo on
Set FDate=%Date:~-10,10%
Set Fdate=%FDate:/=-%
i:
cd\
cd folder1
cd folder2
cd _backups
cd BAFADA~1
MD %FDate%
copy "I:\folder\folder\BAFA Database\*.*" "I:\folder1\folder2\_Backups\BAFA Database Backups\%FDate%"
::CLS
@echo off
Echo The Database has now been backed up.
Thanks for looking
Graham
Bookmarks