public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* To compare to files in dos
@ 2008-11-21 19:19 Dos_Neo
  2008-11-21 22:54 ` Frank Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Dos_Neo @ 2008-11-21 19:19 UTC (permalink / raw)
  To: linux-msdos


Hi All,

I want to compare to 2 file(.txt) in dos prompt.
suppose i have files- output1.txt and output2.txt in d:\ drive

If i compare this two files i want some output
===============================================
if they match result should be "They matach"
if not matach then "They do not matach"
-- 
View this message in context: http://www.nabble.com/To-compare-to-files-in-dos-tp20627871p20627871.html
Sent from the linux-msdos mailing list archive at Nabble.com.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: To compare to files in dos
  2008-11-21 19:19 To compare to files in dos Dos_Neo
@ 2008-11-21 22:54 ` Frank Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Cox @ 2008-11-21 22:54 UTC (permalink / raw)
  To: Dos_Neo; +Cc: linux-msdos

On Fri, 21 Nov 2008 11:19:05 -0800 (PST)
Dos_Neo <arya_mady@yahoo.com> wrote:


> I want to compare to 2 file(.txt) in dos prompt.
> suppose i have files- output1.txt and output2.txt in d:\ drive
> 
> If i compare this two files i want some output
> ===============================================
> if they match result should be "They matach"
> if not matach then "They do not matach"

You can easily do this with a small batch file and the cmp command.

cmp will provide you with an errorlevel that you can check and print anything
you want from your batch file.

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-21 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 19:19 To compare to files in dos Dos_Neo
2008-11-21 22:54 ` Frank Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox