Issue: E-mail the latest NTBackup log.
Method: 2 step script – first creates a copy of the latest log, second step e-mails via blat.
Scipt:
# LINE 1 #
pushd C:Documents and SettingsAdministratorLocal SettingsApplication DataMicrosoftWindows NTNTBackupdata
# LINE 2 #
for /f “tokens=*” %%a in (‘dir /b /od’) do set newest=%%a
# LINE 3 #
copy “%newest%” C:logscriptlatest_log.txt
# LINE 4 #
popd
# LINE 5 #
c:logscriptblat.exe c:logscriptlatest_log.txt -f from@domain.com -to to@domain.com -server outbound.smtpdomain.com -subject “SBS Backup log subject”