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

F:
CD \RVKCMP

IF EXIST RVKSTA.ZIP DEL RVKSTA.ZIP
IF EXIST ZIP.LOG DEL ZIP.LOG

ECHO Creating RVKSTA.ZIP > ZIP.LOG
ZIP -r RVKSTA.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 \RVKTEST\NUL DELTREE /Y \RVKTEST >> ZIP.LOG
IF EXIST C:\RVKTMP\NUL DELTREE /Y C:\RVKTMP >> ZIP.LOG
CD \
ECHO.
ECHO ZIP step finished.
ECHO Check:
ECHO   F:\RVKCMP\RVKSTA.ZIP
ECHO   F:\RVKCMP\ZIP.LOG
ECHO.
