Last modified on 7 July 2009, at 00:29

Guide to Windows Commands/Interactive Commands

Interactive CommandsEdit

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 COMMANDEdit

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>
Using the COLOR command.