@echo off
rem ...................   BUexec1.bat Single BU Job  ........................
rem ...... Sample .BAT file for EVM and Veritas Backup Exec  ................
rem ......                   Rev 1.0                         ................
rem ......               Oct. 3, 1999                        ................
rem .........................................................................
rem .........................................................................

rem ..Replace <BU_job_name> with actual name of BU job from the EVM 
rem ..planning Sheet. Omit the <>.
rem ..This batch file must be placed in the Compaq\SWEVM\BIN folder.

rem ..Refer to the EVM planning sheet for naming this file. 

rem ..BEMCMD is not installed with Backup Exec. You will find it on the Backup
rem ..Exec CD under Misc. Install it in the Backup Exec folder before runing this file.

rem ..When you have finished, save this file as a .bat (batch) file.

c:	
rem ..Go to the drive that the Backup Exec Utility is located on
cd  \program files\veritas\backup exec\ 
rem ..Go to the backup exec directory
if exist BEMCMD.EXE goto next
echo on
echo "BEMCMD.EXE not Found"
echo off
goto reset
:next
BEMCMD -o1 -j"<BU_job_name>" -w 
rem ..If used with CBSsamp2.bat, the above -w must be removed.
if errorlevel 0 goto end
if errorlevel -1 goto errornote
echo on
echo "No errorlevel reported"
echo off
goto end
:errornote echo on
echo "Error occurred during backup operation, refer to Backup Exec History Page."
echo off
:reset
cd \compaq\swevm\bin\
:end
