Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Command Prompt - Windows 11, 10, etc. ► ««« »»»

Command line CMD background change color, but how, with example?


Also during the command input you can change the CMD background color by command and the text, here an example!



The color values ​​can be indicated by two consecutive hexadecimal digits on Windows 11, 10, ... and MS Server OS! 

1.) ... Change the background color and foreground color in the CMD!
2.) ... Change the text and background color of the CMD!
3.) ... What should I consider when changing the CMD color?



1.) Change the background color and foreground color in the CMD!

The first hexadecimal digit defines the background of the prompt,
the second hexadecimal digit defines the foreground, or text color.

You can see the color options by command COLOR /? 

Here is an example blue background yellow text! (... see Image-1)


C:\Windows\System32>color 1e

C:\Windows\System32>color 1E


Tip: The letters can be written small and capitalized.

(Image-1) Command Prompt change background and text!
Command Prompt change background and text!

-
▲ Back to the top ▲





2.) Change the text and background color of the CMD!

Enter the color command without parameters to reset the color to default.  (... see Image-2 Point 1) 



C:\Windows\System32>color




(Image-2) Reset background and colors changes!
Reset background and colors changes!

-
▲ Back to the top ▲



3.) What should I consider when changing the CMD color?

Attempting to use the same foreground and background color will ignore this command.

Example color 11 = Blue / Blue:


C:\Windows\System32>color 11



When changing the CMD text color and the background color, the changes are not saved on the next startup, the CMD is started again with standard text and background color, usually black background and white text (foreground color) to permanently change the colors of cmd.exe, resp. To change prompt, you have to read this FAQ:

►► Command prompt, change CMD settings, color, font, ... !



Too see all color help use color /?

Microsoft Windows [Version 10.0.22000.184]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Nenad>color /?
Sets the default console foreground and background colors.

COLOR [attr]

attr        Specifies color attribute of console output

Color attributes are specified by TWO hex digits -- the first
corresponds to the background; the second the foreground.  Each digit
can be any of the following values:

0 = Black       8 = Gray
1 = Blue        9 = Light Blue
2 = Green       A = Light Green
3 = Aqua        B = Light Aqua
4 = Red         C = Light Red
5 = Purple      D = Light Purple
6 = Yellow      E = Light Yellow
7 = White       F = Bright White

If no argument is given, this command restores the color to what it was
when CMD.EXE started.  This value either comes from the current console
window, the /T command line switch or from the DefaultColor registry
value.

The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute
the COLOR command with a foreground and background color that are the
same.

Example: "COLOR fc" produces light red on bright white

C:\Users\Nenad>


 

When changing colors in the Windows command line (CMD), there are a few things to keep in mind to ensure that the command line continues to function properly and is easy to read. Here are some important points:

It is advisable to note the default colors or your previous settings in case you want to revert to the original colors.

Remember that changing colors in the CMD is primarily a personal preference. Adjust the colors to suit your own preferences and needs, as long as you take into account the above considerations so as not to compromise functionality and readability.


FAQ 34: Updated on: 17 October 2023 19:01 Windows
Windows-Console

Using PowerShell and CMD to delete complete directories, with examples?


You can use PowerShell and / or cmd.exe to delete complete directories in one go with subdirectories on Windows 12, 11, 10, Deleting of Directories
Windows-Console

Disable and enable SmartScreen via CMD BATCH command?


The solution is simple to disable and enable SmartScreen via CMD BATCH command and command prompt Contents: 1. Deactivating the Smart Screen when browsing
Windows-Console

How can I start the program at a certain time CMD, with examples?


In Windows you can start programs via AT at a certain time without additional software programs  Start the cmd.exe and use the command "AT" in the combination
Windows-Console

Copying files with COPY commands, cmd with examples?


In Windows you can copy via COPY command without file explorer, files and directories without additional software Start the cmd.exe and use the command
Windows-Console

Viewing shares, sessions and open files, cmd example?


The command prompt on Windows 11, 10, etc. allows you to view / query shared folders and current sessions / open files   Content: 1. Example: View
Windows-Console

Using SCHTASK for Programs Autostart in all Windows OS, how to?


Time controlled Autostart of Windows 11, 10, etc. programs In new Windows OS you can use SCHTASK to start programs at a certain time   Content: 1.
Windows-Console

Secure File Removal Using the ERASE Command, Examples?


Please use Eraser to delete sensitive data. It can also clean digital SD memory cards of all recoverable data As with Linux, Appels Mac OS and other systems

»»

  My question is not there in the FAQ
Asked questions on this answer:
  1. Lodge script blue background?
  2. Change background with cmd?
  3. Cmd change color just for one command?
  4. Cmd font color green?
  5. Cmd on green?
  6. cmd change colors?
  7. Alternatively, can I set the RGB values ​​in the command prompt to my desired color and select the desired color for text in the console?
  8. remove windows background cmd command?
  9. How do I change the background of cmd?
  10. Batch text output colored how?
  11. Cmd color green?
  12. Change cmd background?
  13. The black and white CMD console in Windows is too colorless for me, can I change the background and font colors, does someone show me how this works in the command prompt?
  14. Would like to change the CMD color via settings, but don't trust me?
  15. Windows command prompt text color?
  16. Can the Windows command prompt CMD.EXE, which I start with the key combination Windows + R, also be made from black consoles and white letters to a setting so that the colors are not black, but have different colors, i.e. a window background with the desired color ?
  17. Reset Windows colors via cmd?
  18. Cmd command for change desktop background?
  19. I am looking for the solution to change CMD command prompt color how does something like that on MS Windows?
Keywords: windows, 11, 10, server, eleven, console, command, line, background, change, color, with, example, input, text, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + StressMyPC
  + DesktopSnowOK
  + Delete.On.Reboot
  + IsMyTouchScreenOK
  + Print.Test.Page.OK
  + OpenCloseDriveEject
  + ColorConsole
  + IsMyLcdOK
  + DesktopDigitalClock
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | gc24b | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► How to change font name and size in cells of Explorer View! ◄
► Placeholders, wildcards, comparison of characters, search and find (file exchange)? ◄
► What version of Windows 12 will there be? ◄
► Backup and restoring a specific registry entries via regedit.exe! ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....