I am use a windows command prompt for hours a day at work, and I want to spice things up. I want my text color to change color every 1 second. I have a batch script that does this.
@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
)
)
It nicely changes the color of my foreground or background every second. However, I want to have this batch script run automatically whenever I open my command prompt shortcut. So in my Shortcut properties, I set the "Target" to this:
Shortcut Target:
C:\Windows\system32\cmd.exe /k auto-change-text-color.bat
This works as expected, but because the batch file is running, I cannot use the command prompt. And instead I just see the background color changing once in a while.
Is there any way to run this in the background and continue using the command prompt while the colors change?
If not, is there any other way to do what I want to do? Maybe with Java, perl, or something besides a batch file?
Thank you for your help.