Windows Batch file for backup and verify backup-image -
08-23-2010
, 10:12 AM
Hi ,
How db2 return codes works into a windows batch file?
I try to explain my needs: i want to write a batch file for
-make offline backup of db2 (version 8.2,9.5)
-check the backup image file with db2ckbkp utility
-copy the backup image on a network drive with a simple copy command
if an error occurred into any of these steps i want to send a message
or write something on the screen (or send an email with the problem to
a list of users)
my problem is that i'm unable to check the return code of every
command, it seems that errorlevel variable is not working.
ps: for me is ok also to use other script languages available on
windows, if this solve the problem.
can you help me?
JH |