This is a simple Batch example on some of the colors you can change the txt to in dos

@ECHO OFF
color %num%
:start
cls
COLOR %num%
ECHO Green = 1
ECHO Red = 2
ECHO Yellow = 3
ECHO Aqua = 4
ECHO Purple = 5
ECHO White = 6
ECHO Blue = 7
ECHO Gray = 8
ECHO.
SET/P color=Enter Color:
IF "%color%" equ "1" goto 1
IF "%color%" equ "2" goto 2
IF "%color%" equ "3" goto 3
IF "%color%" equ "4" goto 4
IF "%color%" equ "5" goto 5
IF "%color%" equ "6" goto 6
IF "%color%" equ "7" goto 7
IF "%color%" equ "8" goto 8
IF "%color%" equ "exit" goto end
IF "%color%" equ "%color%" goto error
:1
set num=a
goto start
:2
set num=c
goto start
:3
set num=e
goto start
:4
set num=B
goto start
:5
set num=D
goto start
:6
set num=F
goto start
:7
set num=9
goto start
:8
set num=8
goto start
:error
cls
color 0
ECHO That is not a Valid Color
echo.
pause
goto start



just save this code in notepad and give name as filename.bat

__________________

Replies

You are reading an archived discussion.

Related Posts

Cool batch file to lock and disguise a folder. Move any files you want to be hidden in your locker, double click the bat again and you will be asked...
Hello, CE's i'm Using windows - 7 Professional Operating System... whenever i tried to open my computer properties its not opening .. please help me out from this issue ...
I am Vasavi from Hyderabad, Andhra Pradesh.I am a first year student doing Computer Science Engineering.I am having holidays now.I came across this site while I was searching for 'How...
hi friendz😀 i m a 3rd yr student of instrumentation. i need info. of mini projects. plz do help me out. thanks in advance
Creator of world's first automated teller machine (ATM) , John Shepherd Barron passed away at the age of 84 after his long battle with illness. He is survived by his...