home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #2 / RBBS_vol1_no2.iso / add2 / chkup32.zip / CHECKUP.BAT next >
DOS Batch File  |  1989-04-20  |  2KB  |  55 lines

  1.           REM Rich Levin's CHECKUP.BAT (tm)
  2.           REM Copyright (c) 1988 Richard B. Levin
  3.           REM All Rights Reserved
  4.           REM
  5.           REM This batch file maintains clean copies of CHECKUP and .XUP
  6.           REM files.  Rename to AUTOEXEC.BAT and store on a clean floppy
  7.           REM disk.
  8.           REM
  9.           REM Set the system date and time:
  10.           REM
  11.                     DATE
  12.                     TIME
  13.           REM
  14.           REM Make sure we're on the root directory of the hard disk
  15.           REM (substitute the disk drive letter of your choice):
  16.           REM
  17.                     C:
  18.                     CD \
  19.           REM
  20.           REM Copy CHECKUP and .XUP files from the A: drive to the hard
  21.           REM disk:
  22.           REM
  23.                     COPY A:\CHECKUP.EXE
  24.                     COPY A:\IBMBIO.XUP
  25.                     COPY A:\IBMDOS.XUP
  26.                     COPY A:\COMMAND.XUP
  27.                     COPY A:\FOO.XUP C:\PLOP\PLOP\FIZZ\FIZZ
  28.           REM
  29.           REM Check files and resulting ERRORLEVEL.  An ERRORLEVEL of 1 or
  30.           REM higher indicates CHECKUP terminated abnormally.  (CHECKUP
  31.           REM supports four ERRORLEVELs; see CHECKUP.DOC for details.)  In
  32.           REM this example, system execution is halted by PAUSE-ing after
  33.           REM a non-zero ERRORLEVEL is encountered.  You may want take
  34.           REM different action(s) based on specific ERRORLEVELs.
  35.           REM (Substitute your list of input files here):
  36.           REM
  37.                     CHECKUP *.COM
  38.                     IF ERRORLEVEL 1 PAUSE
  39.                     CHECKUP C:\PLOP\PLOP\FIZZ\FIZZ\FOO.EXE
  40.                     IF ERRORLEVEL 1 PAUSE
  41.           REM
  42.           REM Copy .XUP files to the clean floppy disk:
  43.           REM
  44.                     COPY C:\*.XUP A:\
  45.                     COPY C:\PLOP\PLOP\FIZZ\FIZZ\*.XUP A:\
  46.           REM
  47.           REM Reclaim disk space by deleting CHECKUP-related files from the
  48.           REM hard disk:
  49.           REM
  50.                     DEL CHECKUP.EXE
  51.                     DEL *.XUP
  52.                     DEL C:\PLOP\PLOP\FIZZ\FIZZ\*.XUP
  53.           REM
  54.           REM End of CHECKUP.BAT
  55.