Quick update as to what I'm trying to accomplish.
As some of you may already know, when an Exchange backup fails, it fails with a status 1. While I'm sure to some of you a status 1 is unheard of in your environment (**cough**Bob**cough**), but we have plenty of clients that finish with a status 1 for a number of reasons. So, that being said, we were going to try doing cumulative backups every other day on Exchange and let the logs grow for 2 days rather than 1, but if we had any failure in the full job and the logs didn't flush, we'd hit a limit on the number of logs that Exchange could handle.
Bottom Line
I want to know when an Exchange backup finishes with anything but a status 0 or 150. I thought I could do somehing like the following to the backup_exit_notify.cmd, but it doesn't seem to be working. Any ideas?
@if "%2" != "P-Exchange-Stores" goto NotExchange
:NotExchange
@if "%5" > 0 && != 150
@blat SendE-Mail
Thoughts? I know the && doesn't work, but the != doesn't seem to work either. HELP!
Lance