home *** CD-ROM | disk | FTP | other *** search
- If you use the DOS COMP command and watch as the screen scrolls. You may not
- always be able to read the message about the compare. Try the following:
-
-
- 1st issue the command: DIR [data1]
-
- At the end of the directory listing will be a count of the number of files
- matching [data1]. If [data1] is [*.*] and the directory is NOT a
- root directory, subtract 2 from the count. This is because the ".." and "."
- subdirectory entries are not counted during the next step. If the directory
- contains additional subdirectory entries, they must also be subtracted from
- the count to get the number of actual files in the directory.
-
-
- 2nd issue the command: COMP [data1] [data2] | FIND /C "OK"
-
- The compare is filtered through FIND which will look for the string "OK".
- The /C switch instructs FIND to keep a count of the number of files that
- compare "OK". The "OK" must be upper case. At the end of the compare, you
- will be prompted for comparing more files. Answer N and the count for the
- number of "OK" files will be shown.
-
- Dennis W. Person
- 6828 Devonshire Drive
- Canton, MI 48187-2613
-