411 REFERENCE · Wikibooks
Windows Batch Scripting/Interactive Commands
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Interactive Commands
This chapter covers the following commands:
CLS - Clears the screen.
COLOR - Sets the default console foreground and background colors.
DOSKEY - Edits command lines, recalls Windows commands, and creates macros.
HELP - Provides Help information for Windows commands.
PROMPT - Changes the Windows command prompt.
TITLE - Sets the window title for a CMD.EXE session.
The COLOR COMMAND
The COLOR command sets the default console foreground and background colors.
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.
D:\wikibooks>COLOR 00
D:\wikibooks>echo %ERRORLEVEL%
1
D:\wikibooks>
frame|Using the COLOR command.