Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The help for CMD.exe lists the COLOR command as being affected by the ENABLEEXTENSIONS arguments. It further states to see what those extensions are you need to look at the command's local help.

COLOR /? makes no mention of the extensions.

What are they?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

EnableExtensions determines whether the extensions to the command processor (cmd.exe), such as chdir, setlocal, and color, are enabled. Because the extensions might be incompatible with a command-script language, Windows 2000+ lets you disable the extensions. This entry affects all extensions. You cannot use this entry to selectively enable or disable extensions. You can, however, disable extensions for a particular invocation of cmd.exe by using the /E:OFF switch.

Globally located at HKCU\Software\Microsoft\Command Processor\EnableExtensions.

C:\Users\jnovack>cmd /E:ON
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\jnovack>color 1f
(color changes to bold white (f) on blue (1))
C:\Users\jnovack>color
(color reverts to normal)

C:\Users\jnovack>cmd /E:OFF
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\jnovack>color fc
'color' is not recognized as an internal or external command,
operable program or batch file.

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

Reference:

share|improve this answer
    
The body of your answer provides backgorund as to enabling or disabling the extensions and not how it affected the COLOR command. It was the example with it off that showed the COLOR command is only available with the extensions on. I edited the answer to put that up front. –  Rich Shealer Apr 4 '13 at 13:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.