@echo off rem Created by Ralph Weaver for Santa Maria Software. rem All rights reserved. 05/04/2000 REM (UPDATED 10/29/2004) To include pending ReOrder files as requested rem by users. Backup will be directed to the FLASH or ZIP drive. rem * REM This is a replacement backup.bat file that will copy a compressed REM backup file that contains all necessary files in the C:\CMAN8\DATA REM folder onto a ZIP drive. Once the drive has reached ten backups, REM the oldest backup will be replaced by the newest one. This will REM insure that you have your ten latest backups on one zip drive. rem * rem * rem ***************************************************************** REM * REM ***************************************************************** cls echo. echo. echo. echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo ÛÛÛº º ECHO ÛÛÛº ** THIS PROGRAM WILL BACKUP TO A ZIP OR FLASH DRIVE ** º ECHO ÛÛÛº ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ º echo ÛÛÛº Ready to backup all Counterman Pro Data to Flash/Zip º echo ÛÛÛº Press any key to continue... º echo ÛÛÛº º echo ÛÛÛÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ echo. pause >nul cls echo. echo. echo. echo. echo. echo Please Wait.......... echo. echo. echo. echo. echo. echo. cd c:\cman8 if exist c:pos.zip del c:pos.zip if exist pos.zip del pos.zip if exist pkzip.exe goto RUN1 IF EXIST POSORDER.ZIP DEL POSORDER.ZIP CD C:\CMAN8\DATA COPY C:PKZIP.EXE CD C:\CMAN8 :RUN1 CD C:\CMAN8\DATA pkzip pos C:*.* -x*.zip -x*.exe -x*.bk* if not exist c:\pb\ordtmp*.* goto :RUN2 cd C:\pb pkzip POSORDER C:ordtmp*.* echo. :RUN2 echo. echo. if errorlevel 255 echo User Aborted (255) if errorlevel 255 goto error if errorlevel 18 echo Could not open file (18) if errorlevel 18 goto e13msg if errorlevel 17 echo Too Many Files... (17) if errorlevel 17 goto error if errorlevel 16 echo Bad or Illegal Paramaters specified. if errorlevel 16 goto error if errorlevel 15 echo POS ZIP is marked as Read Only... (15) if errorlevel 15 goto error if errorlevel 14 echo Disk Full (14) if errorlevel 14 goto dskmsg if errorlevel 13 echo There were File(s) NOT Found... (13) if errorlevel 13 goto e13msg if errorlevel 12 echo NO File(s) Found... (12) if errorlevel 12 goto error if errorlevel 11 echo Not enough Memory (11) if errorlevel 11 goto error if errorlevel 10 echo Not enough Memory (10) if errorlevel 10 goto error if errorlevel 9 echo Not enough Memory (9) if errorlevel 9 goto error if errorlevel 8 echo Not enough Memory (8) if errorlevel 8 goto error if errorlevel 7 echo Not enough Memory (7) if errorlevel 7 goto error if errorlevel 6 echo Not enough Memory (6) if errorlevel 6 goto error if errorlevel 5 echo Not enough Memory (5) if errorlevel 5 goto error if errorlevel 4 echo Not enough Memory (4) if errorlevel 4 goto error if errorlevel 3 echo Error in Zip (3) if errorlevel 3 goto error if errorlevel 2 echo Error in Zip (2) if errorlevel 2 goto error if errorlevel 1 echo Bad File Name (1) if errorlevel 1 goto error if errorlevel 0 goto cont echo. echo. echo. echo PkZip did NOT run ... or Undefined Error... goto error rem ************************************************************************ rem ************************************************************************ :cont if exist pos.bk9 del pos.bk9 if exist pos.zip ren pos.zip *.bk0 if exist pos.bk8 ren pos.bk8 *.bk9 if exist pos.bk7 ren pos.bk7 *.bk8 if exist pos.bk6 ren pos.bk6 *.bk7 if exist pos.bk5 ren pos.bk5 *.bk6 if exist pos.bk4 ren pos.bk4 *.bk5 if exist pos.bk3 ren pos.bk3 *.bk4 if exist pos.bk2 ren pos.bk2 *.bk3 if exist pos.bk1 ren pos.bk1 *.bk2 if exist pos.bk0 ren pos.bk0 *.bk1 echo. echo. echo. echo Please WAIT while copying file to ZIP Drive (this takes a minute or so)... copy C:pos.zip pos.bk1 >NUL IF NOT EXIST C:\PB\POSORDER.ZIP GOTO RUN3 CD C:\PB COPY C:POSORDER.ZIP >nul :RUN3 echo. echo. echo. echo Backup Procedure Sucessful! echo. pause CD C:\CMAN8\DATA IF EXIST C:POS.ZIP del pos.zip >NUL IF EXIST C:\PB\POSORDER.ZIP del c:\pb\POSORDER.zip NUL cd C:\ cls goto end :e13msg cd\ echo. echo. echo. echo Sorry, there was a file that could not be opened. echo. echo. goto error :dskmsg cd\ echo. echo. echo. echo. echo. echo. echo. echo It seems that the Hard Drive has filled up, Try to free up some echo additional space. If you do not know how to do this, Contact your echo local computer technician or call COUNTERMAN. echo. goto error :error echo. echo. echo. echo There was an error, Press the "Print Scrn" key to print above echo messages, and/or call COUNTERMAN for assistance. (800)937-6590 ECHO. ECHO. PAUSE gotto STOP :end cd\ echo. echo Current backup files and dates on ZIP drive are as listed below... ECHO ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ dir pos*.* ECHO ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ ECHO. echo THANK YOU FOR USING COUNTERMAN PRO!!! echo. echo (PRESS ANY KEY TO CLOSE THIS WINDOW) RTW... pause >nul :STOP EXIT