Re: changing the color of a single line in a cmd window

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Matthias Tacke (Matthias.Tacke_at_web.de)
Date: 08/18/04


Date: Wed, 18 Aug 2004 17:29:49 +0200

Herbert Kleebauer wrote:

>Mombiatch wrote:
>
>> I'm trying to change a single line of output from a batch file to red (to
>> show there's an error). I tried 'color c' but this changed the entire
>> window's text :-P Anyone have any ideas? I used to work for Microsoft and
>> saw this plenty of times, but then again, it might have been
>> Console.Writeline in an exe rather than a batch file.
>
>@echo off
>echo Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>ctext.com
<snip>

works fine Herbert,
but due to the fact it's a com program doesn't know of other than
standard screen sizes (80*25,80*43,80*50) and flickers annoyingly.

-- 
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm  XP>HH ntcmds.chm


Relevant Pages