

                                 PCHASH
                          ver 2.0 July 25, 1992



WHAT'S NEW

PCHASH2 version 2.0 is essentially the same as version 1.0 except that the
OS/2 version has been compiled for 32-bit operation, resulting in faster
processing.




PCHASH and PCHASH2 are programs to display both 16- and 32-bit Cylic
Redundancy (CRC) values (Hash totals) of files specified on the command line.
See description at bottom if you are unfamiliar with CRC's.


DESCRIPTION

PCHASH.EXE (DOS version) and PCHASH2.EXE (OS/2 version) are run from the
command line.  They display file name, size, date, time, 16-bit and 32-bit
CRC for all files matching the input file specification(s).  The 16-bit
CRCs should be the same as for files archived with ARC, LZH, LZS, PAK and
ZOO.  32-bit CRC should be the same as files archived/compressed with PKZIP.

PCHASH was designed to be incorportated into DOS batch or OS/2 command files
easily by allowing multiple file specifications with wildcards, I/O redirection,
and simple (i.e. non-GUI) output.  Note that seconds are also displayed as part
of the time for greater file-verification.



INPUT

Valid DOS or OS/2 filename[s].
Wildcards (*,?) and multiple filespecs are supported.
Examples of valid command lines:
   PCHASH *.DOC
   PCHASH FILE??.OBJ
   PCHASH C:\*.COM  D:\UTIL\*.COM
   PCHASH *.WP  C:\DOCS\*.TXT  D:\PROGS\F*.PAS  A:*.DOC



OUTPUT

Complete file name including path
Number of bytes processed (should match file size)
File size, date, time (including seconds), 16-bit CRC 32-bit CRC

The output can be redirected with the DOS or OS/2 redirection symbols >, or >>.
For example, the command:    PCHASH *.OBJ > ALL.OBJ
  will write the output to the file ALL.OBJ instead of to the screen,
  erasing the existing ALL.OBJ file.
The command:    PCHASH *.OBJ >> ALL.OBJ
  will append the output to the file ALL.OBJ instead of to the screen,
  adding the results to end of the ALL.OBJ file.

The message "Can't open the file...<filename>" is displayed if PCHASH cannot
access a file.  This usually means another application has the file open for
exclusive access.  If a file cannot be accessed, PCHASH will display the
message, bypass the file, and continue with the next file.  PCHASH opens files
for read only.



Sample output:

PCHASH2 - Cyclic Redundancy Checker     Version 2.0,dmc   7/25/92
Command line entered:
*.OBJ

E:\DIR1\FILE1.OBJ
3603 Bytes Processed
      3603 12-13-90 10:07:05p     16-bit CRC = 7645   32-bit CRC = AA3420F4

E:\DIR1\FILE2.OBJ
4865 Bytes Processed
      4865 12-17-90 11:04:14p     16-bit CRC = E71F   32-bit CRC = C6D444C2




Note:
The date will always start in column 12.
The time will always start in column 21.
The 16-bit CRC will always start in column 48.
The 32-bit CRC will always start in column 68.





CRC's

For those unfamiliar with a Cyclic Redundancy Check (CRC) value, it is a
unique number calculated based on the contents of a file (text or binary).
If the file is changed even by one byte, the CRC value will also change.
CRC's are useful for version control, or for verifying that important files
have not been altered, corrupted, or infected with viruses.

For example, the following lines in AUTOEXEC.BAT can help provide verification
that COMMAND.COM has not been altered in any way.

c:\util\pchash c:\dos\command.com
echo      47845  4-09-91  5:00:00a     16-bit CRC = 77B1   32-bit CRC = 5E5AA032

The first line runs PCHASH on the COMMAND.COM file, and the second line
displays the output from PCHASH which was previously run on an original
version of COMMAND.COM.



  
REVISION HISTORY & REGISTRATION

   *  version 2.0   July, 1992
      PCHASH  - ver 2.0     July 25, 1992
      PCHASH2 - ver 2.0     July 25, 1992

      OS/2 version updated for OS/2 version 2.0


   *  version 1.0   January, 1991
      PC-HASH  - ver 1.0    January 25, 1991
      PC-HASH2 - ver 1.0    January 25, 1991


   I would be most greatful for any comments, suggestions, and/or bug
   reports.  PCHASH and PCHASH2 are distributed as-is, with no warranties
   involved.

   You may give individual copies of the unregistered version PCHASH/PCHASH2
   to friends, associates, collegues, etc. for evaluation purposes, however,
   please include the files PCHASH.EXE, PCHASH2.EXE, and PCHASH2.DOC without
   any modification.


   If you use PCHASH2 (OS/2) and/or PCHASH (DOS), please send a small
   donation of $10.00 each ($20.00 for both) so that I can prove to my
   husband that all the long hours I spend with my PC instead of with him
   are really worth something.   Thank you.


   Donna Campanella
   508 Natalie Lane
   Norristown, PA 19401

   CompuServe 72010,2305
   Prodigy    KCTW07A

