@echo off
:start
d:\utils\ip /f:f:\fd\MSG\%1 /p:f:\fd\MSG\%1\%2 /i /e /w /max:400 /h /s
if errorlevel 10 goto userbreak rem User break
if errorlevel 6 goto pack rem Index has to be packed
if errorlevel 5 goto finished rem Message base locked
if errorlevel 4 goto wrongparams rem Invalid parameters
if errorlevel 3 goto nospace rem Insufficient disk space
if errorlevel 2 goto fatal rem Fatal error
if errorlevel 1 goto finished rem No messages
if errorlevel 0 goto finished rem Don't Pack
:pack
PCBPACK /AREA:%3 /INDEX /FAST
d:
cd\relay
reset
goto finished
:userbreak
hilite BATCH PROCESSING ABORTED BY USER
goto finished
:wrongparams
ltime þ IP CALLED WITH INVALID PARAMETERS! >> e:\log\fd.log
goto finished
:nospace
ltime þ INSUFFICIENT DISK SPACE DURING IMPORT/EXPORT >> e:\log\fd.log
goto finished
:fatal
ltime þ FATAL ERROR IN IMPORT/EXPORT >> e:\log\fd.log
goto finished
:finished