CodingN00B
CodingN00B

Reputation: 43

Need help changing color in batch file

Sorry for another stupid question, but I am wondering if there is a way to get the lines of code for changing the color of text the same way as in cmd. It works way better than trying to do:

set /p inputcolor=
if %inpitcolor%=1 color 1

because even if i knew how to use it with changing the background, i would imagine it would take a while. Again, sorry for being such a n00b. just look at my name.

Upvotes: 1

Views: 114

Answers (1)

cure
cure

Reputation: 2688

@echo off
set /p a=Please enter a color in hex: 
color %a%

Upvotes: 1

Related Questions