Computing.Net > Forums > Disk Operating System > To compare to files in dos

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

To compare to files in dos

Reply to Message Icon

Name: Dos_Neo
Date: November 21, 2008 at 11:46:24 Pacific
OS: Dos
CPU/Ram: 1 Gb
Product: xp
Comment:

I have to compare to files in dos prompt?
if they match output should be "Yes
"
if not out should be "No"

Neo is here



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: November 21, 2008 at 12:09:31 Pacific
Reply:

@echo off
fc /B File_A File_B > nul
if errorlevel 1 echo. No
if not errorlevel 1 echo. Yes

The above is plain DOS, in a Windows DOS box there are better ways to achieve this, but that is another story (to tell in another Forum).


0

Response Number 2
Name: Dos_Neo
Date: November 21, 2008 at 12:54:28 Pacific
Reply:

Hi IVO,

Its working...
Thanks You

Neo is here


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: To compare to files in dos

LPT1 to FILE in DOS autoexec.bat www.computing.net/answers/dos/lpt1-to-file-in-dos-autoexecbat/10696.html

how to compress files in DOS www.computing.net/answers/dos/how-to-compress-files-in-dos/11671.html

How to unprotect files in Dos? www.computing.net/answers/dos/how-to-unprotect-files-in-dos/14519.html