How to change the text color of comments line in a batch file

Posted by flopdix on Stack Overflow See other posts from Stack Overflow or by flopdix
Published on 2010-04-06T15:19:01Z Indexed on 2010/04/18 10:23 UTC
Read the original article Hit count: 238

Filed under:

I have a batch file as follows:

myfile.bat
:: This is a sample batch file

@echo off
echo change directory to d: <---How to change color of only this line (comments lines)
CD d:\
...

© Stack Overflow or respective owner

Related posts about batch-file