home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- : CHECK allows checking of a specific disk datasets
- IF "%1"=="" goto Help
- IF %1==? goto Help
- IF "%2"=="" goto Help
- IF "%PATH%"=="\))PCITK.TMP" GOTO Start
- : If we have not used FASTrun to create ))PCITK.TMP, set path to use floppy
- PATH=%2\
- CD %2\
- IF NOT EXIST %2MIRDIR.COM GOTO MisFil
- IF NOT EXIST %2CHKFILEC.COM GOTO MisFil
- :Start
- ECHO Checking file %1 against compressed CHKfileC report file on %2
- CHKFILEC %1 ))TEMP.LOG
- IF ERRORLEVEL 4 GOTO BadFIL
- MIRdir %2
- IF ERRORLEVEL 32 GOTO BadCHK
- : To also see addtions and deletions of files, remove the /C parameter.
- CFCOMPC %2))A.LOG ))TEMP.LOG/P/C
- DEL ))TEMP.LOG
- CD %2\
- GOTO End
- :Help
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ CHECK will check the file or files specified against check data ║
- ECHO ║ recorded on the check diskette and report any changes. ║
- ECHO ╟─────────────────────────────────────────────────────────────────────────╢
- ECHO ║ Syntax CHECK filename a: ║
- ECHO ║ filename is the file or files to be checked. ║
- ECHO ║ filename may include wildcard characters (? and *). ║
- ECHO ║ a: specifies the drive which contains the CHECK diskette for the ║
- ECHO ║ current drive. ║
- ECHO ╟─────────────────────────────────────────────────────────────────────────╢
- ECHO ║ PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communications Co. ║
- ECHO ║ PC Magazine ■ Wolfgang Stiller ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- GOTO End
- :MisFil
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ You do not appear to have the necessary files on disk %2. MIRDIR.COM ║
- ECHO ║ or CHKFILEC.COM is missing. ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- GOTO End
- :BadFil
- ECHO File name: %1 was not found in the current directory
- GOTO End
- :BadCHK
- ECHO ╔═════════════════════════════════════════════════════════════════════════╗
- ECHO ║ The corresponding directory was not found on the disk in drive %2. ║
- ECHO ║ This usually means that the correct CHECK diskette is not in %2 or ║
- ECHO ║ you have added directories since you last ran SCANmax or SCANsys. ║
- ECHO ╚═════════════════════════════════════════════════════════════════════════╝
- :End
-