Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 462699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:06:04+00:00 2026-05-12T23:06:04+00:00

I want to compare two folders on Windows (Vista, XP) which have a large

  • 0

I want to compare two folders on Windows (Vista, XP) which have a large number of huge files, which I need to compare. If I use Beyond Compare or such tool to compare the folders, it is taking a lot of time if I do it manually. I need to add that folder comparison to batch file.

So on Windows (XP, Vista), is there any command (built-in) or any 3rd party tool/utility (commercial or freeware – either) to compare two folders using the command line.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:06:05+00:00Added an answer on May 12, 2026 at 11:06 pm

    There is the built in command COMP that you could use. It depends a little bit on what you actually want to compare.

    Compares the contents of two files or
    sets of files.

    COMP [data1] [data2] [/D] [/A] [/L]
    [/N=number] [/C]

    data1 Specifies location and
    name(s) of first file(s) to compare.

    data2 Specifies location and
    name(s) of second files to compare.

    /D Displays differences in
    decimal format.

    /A Displays
    differences in ASCII characters.

    /L
    Displays line numbers for differences.

    /N=number Compares only the first
    specified number of lines in each
    file.

    /C Disregards case of
    ASCII letters when comparing files.

    To compare sets of files, use wildcards in data1 and data2 parameters.

    Use a syntax like COMP c:\folder1 c:\folder2 to compare all files in folder1 with the content of folder2. If you need to recurse into the subdirectories, you need to use a batch script using a FOR loop and the PUSHD and POPD command.

    Just leave a comment, if you need help with that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to compare two text files that i have generated from one of
I have a program that compares files in two folders. I want to detect
I have a C++ application in which I need to compare two values and
I have a simple application in which I want compare two arrays. function check()
I want to compare two CSV files to see if they are different. I
I want to compare two times in VB.net: I have 1:42:21 PM and I
I want to compare two (or more) XMLs files by tags names and attributes
I want to compare two files (one file is located on local location and
I have two arrays, @a and @b . I want to do a compare
I want to write a function that compares two files / folders to check

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.