NTBackup return codes

  • Thread starter Thread starter Brian Burgess
  • Start date Start date
B

Brian Burgess

Hi all,

Anyone know the codes returned by NTBACKUP? .. Like if I were to execute
NTBACKUP from a batch file and wanted to find the return value after
NTBACKUP finished?

TIA

-BB
 
As someone else said, don't post here unless you have googled first!

Microsoft says:

The Backup tool (Ntbackup.exe) may not return correct program exit codes.
The expected behavior is to return a zero (0) exit code when a program
starts and runs successfully, and a non-zero exit code when there is a
problem.

Currently, the Backup tool may return a zero (0) exit code even when there
is a problem. The Backup tool will return a non-zero error code only when it
encounters a catastrophic failure, such as an out of memory failure. A
missing device, missing media, or even a backup failure will still return a
zero (0) exit code.

See http://support.microsoft.com/default.aspx?scid=kb;en-us;260327

Roland Giesler
Stellenbosch
South Africa
 
Back
Top