Sum produces a check sum of a file using a variety of methods.
Usage: SUM {Switches} <File Spec> Drive Spec(s)
Note : If no file specification is entered, all files are listed. If drive specifications are entered then those drives are searched. If no drive specifications are entered then the current drive is searched.
Sum produces a check sum of all files matching the given file specification using a variety of methods. It will display a check sum using the following methods:
As SUM is generally used by UNIX systems, SUM is normally used with MIDecode, UUDecode or XXDecode to verify the integrity of the file. Quite often, the original encoding program will place the SUM of the original file in the UU file.
SUM will scan all logical disk drives defined by the system, starting at drive A:. The drives are scanned in order, starting at A:, then B: and so on.
SUM will scan all logical disk drives defined by the system, starting at drive C:. The drives are scanned in order, starting at C:, then D: and so on.
SUM will include subdirectories as part of its search of the specified disk drives. If a subdirectory name is included as part of the file specification, then the search will include that subdirectory and all subdirectories below it. If no subdirectory is given as part of the file specification, then the current directory and all below it are included in the search.
SUM *.cSUM will look for all .C files and list the 8, 16 and 32 bit sum, 16 and 32 bit CRC, BSD and System V values for each of the files.
SUM C:\CONFIG.SYSSUM the file C:\CONFIG.SYS only.