Как изменить цвет конкретной строки в пакетном скрипте
Hello Code Project community, In Batch Script, I am trying to print a specific line(using echo) in a specific color But when I try that, The whole command prompt is changing into that specific color. How to print the specific lines in different colors with out changing the color of whole command window? Please note: 0A = GREEN, 0C = RED
Что я уже пробовал:
My Code: <pre>@echo off color 0A echo This is GREEN COLOR color 0C echo This is Red Color
Выход:
(Print/changes every thing including the path and the file name also in Red color)
C:\Users>test.bat This is GREEN COLOR This is Red Color<