DOS Command: COMP (2024)



COMP


Type: External

Syntax:

COMP [d:][path][filename] [d:][path][filename] [/A][/C][/D][/L][/N:(number)]

Purpose: Compares two groups of files to find information that does not match. (In DOS Version 6, this program is stored on the DOS supplemental disk.)

Discussion

Compares two files or two groups of files. The files can have the same names, or different names. Wildcard characters (? and *) can be used to specify groupsof files to be compared (files of the same names will be compared).

Each set of specified files will be compared, one set at a time.

Before starting the comparison, the program checks to see if files contain a valid end-of-file mark. COMP will not compare files that do not contain an end-of-file marker. If a specified file does not contain such a mark, the following error message will be displayed:

EOF mark not found

This mark is created by your word processor or other application program to indicate the end of the file. You can create the end- of-file marker by pressing and holding the Ctrl key and then pressing the letter Z key.

The COMP program also checks to make sure the file sizes indicated in the directory are the same for compared files; a comparison is not carried out if the files are stored as different sizes.

If you enter one or more pathnames or filenames after the command name, when youpress the Enter key the comparison will begin immediately; therefore, you shouldmake sure the diskette(s) containing the files to be compared are already in thespecified drives. If you want to change diskettes after entering the command, enter the command name with no following parameters. If you enter the COMP command with no options , the program will prompt you for the file and/or path designations.

First, the program will display:

Enter primary filename

Enter the name of the first file or group of files. Next, the program will display:

Enter 2nd filename or drive ID

After you enter the second filename(s), the program will compare the files, issuing reports on its progress.

If the files are identical, it will report:

Files compare OK

If the files are not identical, it will report on the differences it finds.

COMP will display the memory locations of any portions of the compared files that do not match. After ten mismatches, the program terminates the comparison.The following message is displayed

10 Mismatches - ending compare

After all pairs specified have been compared, COMP will display

Compare more files (Y/N)?

To enter more files to compare, press the letter Y key. To terminate the comparisons, press the letter N key.

Options

/A - Displays the differences found between compared files as characters.

/C - Performs a comparison that is not case-sensitive.

/D - Displays the differences found between compared files in decimal format. (The default format is hexadecimal.)

/L - Displays the number of the line where the difference occurred, rather than the byte offset.

/N:(number) - Allows you to enter the number of lines in both files that will be compared, even if the files are of different sizes.

Examples

To compare all the files ending in .TXT on drive A with all of the files ending in .TXT on drive B, enter

comp a:*.txt b:

To compare all of the files in the LETTERS directory on drive A with all of the files in the LETTERS directory on drive B, enter

comp a:\letters b:\letters

Back to the Easy DOS Command Index

DOS Command:  COMP (2024)
Top Articles
Home Equity Loans: A Complete Guide
Realty Finance Articles | RERA Rules | RERA News | RERA Compliances | RERA in India
neither of the twins was arrested,传说中的800句记7000词
Great Clips Mount Airy Nc
Victory Road Radical Red
Dricxzyoki
Form V/Legends
Comforting Nectar Bee Swarm
Martha's Vineyard Ferry Schedules 2024
Linkvertise Bypass 2023
Georgia Vehicle Registration Fees Calculator
Teenbeautyfitness
P2P4U Net Soccer
Beds From Rent-A-Center
When Is the Best Time To Buy an RV?
FIX: Spacebar, Enter, or Backspace Not Working
W303 Tarkov
8 Ways to Make a Friend Feel Special on Valentine's Day
No Strings Attached 123Movies
Eka Vore Portal
The Superhuman Guide to Twitter Advanced Search: 23 Hidden Ways to Use Advanced Search for Marketing and Sales
DoorDash, Inc. (DASH) Stock Price, Quote & News - Stock Analysis
Spergo Net Worth 2022
Star Wars: Héros de la Galaxie - le guide des meilleurs personnages en 2024 - Le Blog Allo Paradise
Violent Night Showtimes Near Amc Fashion Valley 18
Plan Z - Nazi Shipbuilding Plans
TBM 910 | Turboprop Aircraft - DAHER TBM 960, TBM 910
Gopher Hockey Forum
Never Give Up Quotes to Keep You Going
Sunset Time November 5 2022
Naval Academy Baseball Roster
SOGo Groupware - Rechenzentrum Universität Osnabrück
Rainfall Map Oklahoma
Desales Field Hockey Schedule
Craigslist Cars And Trucks Mcallen
Roadtoutopiasweepstakes.con
Capital Hall 6 Base Layout
Audi Q3 | 2023 - 2024 | De Waal Autogroep
Unlock The Secrets Of "Skip The Game" Greensboro North Carolina
Quake Awakening Fragments
Bismarck Mandan Mugshots
Culvers Lyons Flavor Of The Day
Timberwolves Point Guard History
Me Tv Quizzes
Ross Dress For Less Hiring Near Me
Bekkenpijn: oorzaken en symptomen van pijn in het bekken
Nu Carnival Scenes
Wisconsin Volleyball titt*es
Congruent Triangles Coloring Activity Dinosaur Answer Key
Osrs Vorkath Combat Achievements
Taterz Salad
Bloons Tower Defense 1 Unblocked
Latest Posts
Article information

Author: Manual Maggio

Last Updated:

Views: 6046

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Manual Maggio

Birthday: 1998-01-20

Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

Phone: +577037762465

Job: Product Hospitality Supervisor

Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.