I am using this batch script which I got from the net once: You will need blat.exe and some backup.bks settings file. Also, the path to the data files needs to be correct. So some tuning to do...
You schedule this script to run when you want the backup to run.
============================
@echo off
setlocal
Rem get date into a variable so we can create good media name
for /F "usebackq delims=" %%i IN (`date /t`) DO set dt="%%ibackup media"
Rem Set folder name containing backup log files
set fld=C:\Docume~1\administrator\Locals~1\Applic~1\Microsoft\Window~2\NTBackup\data\
Rem This dir command will list all log files sorted by date in bare format
set fcmd=dir "%fld%*.log" /OD /A-D /B
Rem set command will set lastf variable to the last file in set, i.e. the latest one
for /F "tokens=* delims= " %%i in ('%fcmd%') do set lastf=%fld%%%i
Rem Mail latest log file to us
c:\blat\blat.exe "%lastf%" -t some@address.com -s "Backup Report" -mime -server smtp.some.domain -f "some@senderaddress.com" -q
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.