|
K
E
Y |
Common Commands |
INTERNAL |
External |
/SWITCH |
Parameter |
Help text |
AddonTool |
|
Mounted Commands |
.Mount/\Command |
CmdShorthand |
#Constant |
$FUNCTION |
:Procedure |
!GuardNote |
|
Operating Systems |
NT/2K/XP/K3 |
NT Only |
NT/2K |
2K Only |
2K/XP |
XP Only |
XP/K3 |
K3 Only |
2K/XP/K3 |
Related Resources from the NT/2K/XP/K3 Command Library
|
Resource |
|
Short Description |
| |
|
|
Go straight to !GuardNotes. (updated
2004-07-13)
This is the Mounted Help Text. We also archive the Common Help Text
for NT,
2K, XP
and K3
Description
Sets the default console foreground and background colors.
Syntax
Parameters and Switches
|
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.
Examples, Notes and Instructions
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
GuardNotes
Things that are different (by design, by accident or otherwise)
None documented (yet).
|