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

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

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>




 



FAQ 34: Updated on: 5 October 2021 07:49 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 11, 10, Deleting of Directories Preface:
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 Smart Screen Internet Explorer disable C:\Windows\System32>REG
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 The solution is quite simple
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 Start the cmd.exe
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. 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?
  2. Change background with cmd?
  3. Reset Windows colors via cmd?
  4. 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?
  5. Change cmd background?
  6. cmd change colors?
  7. remove windows background cmd command?
  8. Cmd on green?
  9. Cmd color green?
  10. Lodge script blue background?
  11. Windows command prompt text color?
  12. Cmd font color green?
  13. Batch text output colored how?
  14. I am looking for the solution to change CMD command prompt color how does something like that on MS Windows?
  15. Cmd change color just for one command?
  16. Would like to change the CMD color via settings, but don't trust me?
  17. 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 ?
  18. How do I change the background of cmd?
  19. Cmd command for change desktop background?
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

  + 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
  + QuickTextPaste
  + DesktopNoteOK
  + ShortDoorNote
  + AutoHideDesktopIcons
  + BlankAndSecure
  + AlwaysMouseWheel
  + NewFileTime
  + DesktopClock3D
  + PointerStick
  + PAD-s


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

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.077


► How does the exact CPU frequency query work on MS Windows OS? ◄

► Here is a simple example when reading the process list in Task Manager! ◄

► Temporarily stop the hibernation of your Windows 11, 10, ... PC! ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....