@ECHO OFF
REM RMVZIP.BAT
REM Optional packer for RMVSTA result files.
REM Requires ZIP.EXE in PATH or current directory.

F:
CD \RMVCMP

IF EXIST RMVSTA.ZIP DEL RMVSTA.ZIP
IF EXIST ZIP.LOG DEL ZIP.LOG

ECHO Creating RMVSTA.ZIP > ZIP.LOG
ZIP -r RMVSTA.ZIP RUN.LOG SUMMARY.TXT COMPARE.LOG UCOMP.LOG HELPER.TXT ULOG1.OUT ULOGIN.OUT ULOG2.OUT ULGSUP.OUT OUT PUBOUT SETUP UNOV UPUB USETUP >> ZIP.LOG

REM Cleanup generated test directories after ZIP.
REM Keep the CMP/result directory because it contains the ZIP and ZIP.LOG.
ECHO Cleaning generated test directories... >> ZIP.LOG
IF EXIST \RMVTEST\NUL DELTREE /Y \RMVTEST >> ZIP.LOG
IF EXIST C:\RMVTMP\NUL DELTREE /Y C:\RMVTMP >> ZIP.LOG
CD \
ECHO.
ECHO ZIP step finished.
ECHO Check:
ECHO   F:\RMVCMP\RMVSTA.ZIP
ECHO   F:\RMVCMP\ZIP.LOG
ECHO.
