Different Color text

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
joakim
Posts: 24
Joined: 07 Mar 2012 12:08

Different Color text

#1 Post by joakim » 24 Apr 2012 11:50

Hi, i want to add diffirent color on the text in one cmd window, I have tryid this,


@echo off
title color dif
cls
echo ==========================================
echo.
echo.
color a "echo lol"
color c "echo lol"
echo ===========================================

pause


but it dosnt work, thats why i ask 4 help by PROS =)

Squashman
Expert
Posts: 4470
Joined: 23 Dec 2011 13:59

Re: Different Color text

#2 Post by Squashman » 24 Apr 2012 12:07

Take a look at this thread from just a few days ago.
viewtopic.php?f=3&t=3248

Cat
Posts: 32
Joined: 11 Nov 2011 12:04

Re: Different Color text

#3 Post by Cat » 26 Apr 2012 13:30

I personally wouldn't recommend using

Code: Select all

<nul set /p ".="%DEL% " " >> "%~2"
findstr /v /a:%~1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1
goto :eof

'Bit too slow and it constantly creates and deletes files.
Try this: http://bit.ly/Is1MPj

Aacini
Expert
Posts: 1885
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

Re: Different Color text

#4 Post by Aacini » 26 Apr 2012 18:29

You may use my ColorMsg program instead, it is the fastest way to do that and it's free!

Code: Select all

@echo off
title color dif
cls
echo ==========================================
echo.
echo.
colorMsg a "echo lol"
echo.
colorMsg c "echo lol"
echo.
echo ===========================================

pause

joakim
Posts: 24
Joined: 07 Mar 2012 12:08

Re: Different Color text

#5 Post by joakim » 01 May 2012 09:10

wow tnx 4 all the help bros =) this post is {SOLVED}

Post Reply