NTBackup return codes

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
 
R

Roland Giesler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top