ECHO OFF                                                                                                                            
CLS                                                                                                                                 
REM ***********************************                                                                                             
REM BATCH FILE CREATED BY PROFITS                                                                                                   
REM USER = SUPERVISOR                                                                                                               
REM DATE = 01/29/09 TIME = 08:32:12                                                                                                 
REM ***********************************                                                                                             
ECHO INSERT FIRST DISKETTE IN DRIVE O:                                                                                              
PAUSE                                                                                                                               
PKUNZIP O:\MERGE.TMP T:\PROFITS\MORTXPRI -o -d 
                                                                                   
IF ERRORLEVEL 255 GOTO PKZIP_TER                                                                                                    
IF ERRORLEVEL 51 GOTO PKZIP_EOF                                                                                                     
IF ERRORLEVEL 50 GOTO PKZIP_FULL                                                                                                    
IF ERRORLEVEL 11 GOTO PKZIP_NF                                                                                                      
IF ERRORLEVEL 10 GOTO PKZIP_PARM                                                                                                    
IF ERRORLEVEL  9 GOTO PKZIP_NOZIP                                                                                                   
IF ERRORLEVEL  4 GOTO PKZIP_MEM                                                                                                     
IF ERRORLEVEL  2 GOTO PKZIP_ERR                                                                                                     
IF ERRORLEVEL  1 GOTO PKZIP_CRC                                                                                                     
IF ERRORLEVEL 0 GOTO PKZIP_OK                                                                                                       
:PKZIP_OK                                                                                                                           
ECHO Restore Completed                                                                                                              
GOTO ALL_DONE                                                                                                                       
:PKZIP_EOF                                                                                                                          
ECHO PKUnZip Failed - Unexpected EOF in .ZIP                                                                                        
GOTO FAILED                                                                                                                         
:PKZIP_FULL                                                                                                                         
ECHO Restore Failed - Disk Full                                                                                                     
GOTO FAILED                                                                                                                         
:PKZIP_NF                                                                                                                           
ECHO Restore Failed - No Files Found to Extract                                                                                     
GOTO FAILED                                                                                                                         
:PKZIP_PARM                                                                                                                         
ECHO Restore Failed - Invalid Parameters                                                                                            
GOTO FAILED                                                                                                                         
:PKZIP_NOZIP                                                                                                                        
ECHO Restore Failed - No .ZIP file found                                                                                            
GOTO FAILED                                                                                                                         
:PKZIP_MEM                                                                                                                          
ECHO Restore Failed - Memory Error                                                                                                  
GOTO FAILED                                                                                                                         
:PKZIP_ERR                                                                                                                          
ECHO Restore Failed - Error in .ZIP file                                                                                            
GOTO FAILED                                                                                                                         
:PKZIP_TER                                                                                                                          
ECHO Restore Failed - Terminated by User                                                                                            
GOTO FAILED                                                                                                                         
:PKZIP_CRC                                                                                                                          
ECHO Restore Failed - CRC Error                                                                                                     
GOTO FAILED                                                                                                                         
:FAILED                                                                                                                             
PAUSE                                                                                                                               
:ALL_DONE                                                                                                                           
