@echo off
rem ...................   BUarc1.bat Single BU Job  ........................
rem ......    Sample .BAT file for EVM and CAI ARCServe      ................
rem ......                   Rev 1.0                         ................
rem ......                Oct. 3, 1999                        ................
rem .........................................................................
rem .........................................................................

rem ..Replace <Backup_Server_Name> with actual sever name. 
rem ..Replace <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 ..Use the Post command in Arcserve's Pre/Post Command Operation Page to 
rem ..run the undo job command BParc1.exe and sCheck the "Immediate" box in the 
rem ..Create Job page in EVM.

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\CAI\  
rem ..Go to the Arcserve directory
if exist archbatch.exe goto next
echo on
echo "ARCBATCH.EXE not found. Check Path!"
echo off
goto reset
:next
Arcbatch MODE=Execute /H=<Backup_Server_Name> S//00000001.qsd/<job_name> 
if errorlevel 1 goto errornote
if errorlevel 0 goto end
:errornote echo on
echo "Error occurred during backup operation, refer to ARCServe Error Log."
echo off
:reset
cd \compaq\swevm\bin\
:end
