Change text colour in WINDOWS command line

Possible Duplicate:
how to have multiple colors in a batch file?
Colorizing Windows command line output from PHP

Let me just make this very clear: I am on WINDOWS, so \033[0;35mText WILL NOT WORK.

Sorry to have to emphasize like that, but every possible duplicate I have seen has people saying to use the above code regardless of what OS the question is about.

Now, I know it's possible without too much trouble - ffmpeg does exactly the kind of thing I want to do:
Example http://adamhaskell.net/img/ffmpeg_colours.png

So how hard can it be?


ANSWERS:


Use SetConsoleTextAttribute to set the text colour.



 MORE:


 ? Color echo in batch files
 ? (BATCH) Multiple colors on one line
 ? Why are my special characters not ignored in Quoted Batch?
 ? What are the undocumented features and limitations of the Windows FINDSTR command?
 ? How can i change the colour of a command window via batch script when using the start command
 ? Split batch file commands into multiple lines in Windows
 ? Hex transparency in colors
 ? Hex transparency in colors
 ? Hex transparency in colors
 ? Understanding colors on Android (six characters)