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

F:
CD \SLSTCMP

IF EXIST SLSTSTA.ZIP DEL SLSTSTA.ZIP
IF EXIST ZIP.LOG DEL ZIP.LOG

ECHO Creating SLSTSTA.ZIP > ZIP.LOG
ZIP -r SLSTSTA.ZIP RUN.LOG SUMMARY.TXT COMPARE.LOG LCOMP.LOG OUT PUBOUT LOUT LPUBOUT *.OUT *.TXT >> ZIP.LOG

REM Cleanup local helper directory after ZIP, if it exists.
IF EXIST C:\SLSTTMP DELTREE /Y C:\SLSTTMP >> ZIP.LOG

CD \
ECHO.
ECHO ZIP step finished.
ECHO Check:
ECHO   F:\SLSTCMP\SLSTSTA.ZIP
ECHO   F:\SLSTCMP\ZIP.LOG
ECHO.
