home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RBBS in a Box Volume 1 #2
/
RBBS_vol1_no2.iso
/
add2
/
chkup32.zip
/
CHECKUP.BAT
next >
Wrap
DOS Batch File
|
1989-04-20
|
2KB
|
55 lines
REM Rich Levin's CHECKUP.BAT (tm)
REM Copyright (c) 1988 Richard B. Levin
REM All Rights Reserved
REM
REM This batch file maintains clean copies of CHECKUP and .XUP
REM files. Rename to AUTOEXEC.BAT and store on a clean floppy
REM disk.
REM
REM Set the system date and time:
REM
DATE
TIME
REM
REM Make sure we're on the root directory of the hard disk
REM (substitute the disk drive letter of your choice):
REM
C:
CD \
REM
REM Copy CHECKUP and .XUP files from the A: drive to the hard
REM disk:
REM
COPY A:\CHECKUP.EXE
COPY A:\IBMBIO.XUP
COPY A:\IBMDOS.XUP
COPY A:\COMMAND.XUP
COPY A:\FOO.XUP C:\PLOP\PLOP\FIZZ\FIZZ
REM
REM Check files and resulting ERRORLEVEL. An ERRORLEVEL of 1 or
REM higher indicates CHECKUP terminated abnormally. (CHECKUP
REM supports four ERRORLEVELs; see CHECKUP.DOC for details.) In
REM this example, system execution is halted by PAUSE-ing after
REM a non-zero ERRORLEVEL is encountered. You may want take
REM different action(s) based on specific ERRORLEVELs.
REM (Substitute your list of input files here):
REM
CHECKUP *.COM
IF ERRORLEVEL 1 PAUSE
CHECKUP C:\PLOP\PLOP\FIZZ\FIZZ\FOO.EXE
IF ERRORLEVEL 1 PAUSE
REM
REM Copy .XUP files to the clean floppy disk:
REM
COPY C:\*.XUP A:\
COPY C:\PLOP\PLOP\FIZZ\FIZZ\*.XUP A:\
REM
REM Reclaim disk space by deleting CHECKUP-related files from the
REM hard disk:
REM
DEL CHECKUP.EXE
DEL *.XUP
DEL C:\PLOP\PLOP\FIZZ\FIZZ\*.XUP
REM
REM End of CHECKUP.BAT