April 2002
Beginner
640 pages
27h 54m
English
cls
Clear the DOS window and buffer, leaving only the command prompt and cursor.
Type cls at the prompt to clear the screen and the
screen buffer (see Section 6.1,
earlier in this chapter), which is useful for privacy concerns or
simply reducing clutter.
The difference between using cls and simply
closing the current Command Prompt window and opening a new one, is
that your working environment (such as the current directory) is
preserved with cls.
cls is also useful in complex batch
files — for clearing the screen after one set of interactions or
command output. The name cls (Clear Screen) refers
to the old days when DOS owned the whole screen.
Read now
Unlock full access