* How print output into diffent color
@ 2008-11-24 6:51 Dos_Neo
2008-11-24 7:08 ` Frank Cox
2008-12-09 18:07 ` Frank Cox
0 siblings, 2 replies; 5+ messages in thread
From: Dos_Neo @ 2008-11-24 6:51 UTC (permalink / raw)
To: linux-msdos
Hi All,
I executing one batch file in dos prompt.So my problem is that if it give
correct answer than it particalur line should print in green other wise in
red color.
Is there any command though which i can do it.
i.e
fc /B output.txt output1.txt >null
if errorlevel 1 echo.////Bad///////(print in Red color)
if not errorlevel 1 echo.///Good///(print in Green color only particular
line)
--
View this message in context: http://www.nabble.com/How-print-output-into--diffent-color-tp20655741p20655741.html
Sent from the linux-msdos mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How print output into diffent color
2008-11-24 6:51 How print output into diffent color Dos_Neo
@ 2008-11-24 7:08 ` Frank Cox
2008-12-09 18:07 ` Frank Cox
1 sibling, 0 replies; 5+ messages in thread
From: Frank Cox @ 2008-11-24 7:08 UTC (permalink / raw)
To: Dos_Neo; +Cc: linux-msdos
On Sun, 23 Nov 2008 22:51:25 -0800 (PST)
Dos_Neo <arya_mady@yahoo.com> wrote:
> I executing one batch file in dos prompt.So my problem is that if it give
> correct answer than it particalur line should print in green other wise in
> red color.
>
> Is there any command though which i can do it.
> i.e
> fc /B output.txt output1.txt >null
> if errorlevel 1 echo.////Bad///////(print in Red color)
> if not errorlevel 1 echo.///Good///(print in Green color only particular
> line)
http://www.robvanderwoude.com/ansi.html
--
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How print output into diffent color
2008-11-24 6:51 How print output into diffent color Dos_Neo
2008-11-24 7:08 ` Frank Cox
@ 2008-12-09 18:07 ` Frank Cox
2008-12-09 18:28 ` Mike McCarty
1 sibling, 1 reply; 5+ messages in thread
From: Frank Cox @ 2008-12-09 18:07 UTC (permalink / raw)
To: Dos_Neo; +Cc: linux-msdos
On Tue, 9 Dec 2008 08:29:25 -0800 (PST)
Dos_Neo wrote:
> I executing one batch file in dos prompt.So my problem is that if it give
> correct answer than it particalur line should print in green other wise in
> red color.
>
> Is there any command though which i can do it.
http://www.robvanderwoude.com/ansi.html
--
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How print output into diffent color
2008-12-09 18:07 ` Frank Cox
@ 2008-12-09 18:28 ` Mike McCarty
2008-12-09 18:53 ` Frank Cox
0 siblings, 1 reply; 5+ messages in thread
From: Mike McCarty @ 2008-12-09 18:28 UTC (permalink / raw)
To: linux-msdos
Frank Cox wrote:
> On Tue, 9 Dec 2008 08:29:25 -0800 (PST)
> Dos_Neo wrote:
>
>> I executing one batch file in dos prompt.So my problem is that if it give
>> correct answer than it particalur line should print in green other wise in
>> red color.
>>
>> Is there any command though which i can do it.
>
> http://www.robvanderwoude.com/ansi.html
Good info, but that site wants to set cookies, so beware.
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How print output into diffent color
2008-12-09 18:28 ` Mike McCarty
@ 2008-12-09 18:53 ` Frank Cox
0 siblings, 0 replies; 5+ messages in thread
From: Frank Cox @ 2008-12-09 18:53 UTC (permalink / raw)
To: Mike McCarty; +Cc: linux-msdos
On Tue, 09 Dec 2008 12:28:50 -0600
Mike McCarty wrote:
> > http://www.robvanderwoude.com/ansi.html
>
> Good info, but that site wants to set cookies, so beware.
That is (or at least, was) one of the first hits on Google when searching this
subject, which is why I posted it here. There are, of course, a ton of other
sites that contain much the same information.
I never noticed the cookie issue. Doesn't everyone surf with cookies turned off
unless explicitly allowed?
--
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-09 18:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24 6:51 How print output into diffent color Dos_Neo
2008-11-24 7:08 ` Frank Cox
2008-12-09 18:07 ` Frank Cox
2008-12-09 18:28 ` Mike McCarty
2008-12-09 18:53 ` Frank Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox