- Open a blank Notepad document.
- Copy and paste the code at the bottom of this post.
- Go to File, then Save As...
- Change Save as type to All Files.
- Add .bat to the end of the file name.
- Save the file to an easy-to-find location, such as the desktop.
- Open Command Prompt.
- Type cd C:\Users\Name\Desktop or use the file path given in the most recent line of Command Prompt.
- Press enter.
- Type the name of the .bat file and press enter.
- The text and background will randomly change colors.
- Use CTRL + C to end the script.
@echo off
set NUM=0 1 2 3 4 5 6 7 8 9 A B C D E F
for %%x in (%NUM%) do (
for %%y in (%NUM%) do (
color %%x%%y
timeout 1 >nul
)
)