View Single Post
Old 01-20-2013, 04:39 AM   PM User | #1
Justsawyer
New Coder

 
Join Date: Nov 2012
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Justsawyer is an unknown quantity at this point
Question Rainbow Text in Command Prompt

So I'm coding a silly little program in .bat for command prompt, and can't seem to figure out how colors and text work? This is what I have so far:

@echo off
:start
color 02
echo I eat poop
goto start


but it is just 1 color, I want it to change the text color but have the same text every time, or maybe diffrent text, that doesn't matter, just a diffrent color every line, say like this:

@echo off
:start
color 02
echo I eat poop
color 03
echo I eat poop
color 04
echo I eat poop
color 05

goto start


I've tried that but it just keeps the text one color any help? also picture below
Attached Thumbnails
Click image for larger version

Name:	rainbow.png
Views:	60
Size:	13.0 KB
ID:	11872  
Justsawyer is offline   Reply With Quote