From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Cox Subject: Re: To compare to files in dos Date: Fri, 21 Nov 2008 16:54:41 -0600 Message-ID: <20081121165441.f4ded0bc.theatre@sasktel.net> References: <20627871.post@talk.nabble.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-reply-to: <20627871.post@talk.nabble.com> Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Dos_Neo Cc: linux-msdos@vger.kernel.org On Fri, 21 Nov 2008 11:19:05 -0800 (PST) Dos_Neo 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