Clear the screen.
Syntax CLS
If CLS is redirected to file, console or executed through FOR /F it will print a line feed character (ASCII 10).
If the screen is successfully cleared %ERRORLEVEL% = unchanged, typically this will be 0 but if a previous command set an errorlevel, that will be preserved (this is a bug).
If a bad switch is given = %ERRORLEVEL% = 1
Example
Echo Hello
CLS
Echo You didnt see that
CLS is an internal command.
“Let me be clear: America wants a strong, peaceful, and prosperous Russia” ~ Barack Obama
Related:
ECHO - Display message on screen.
Powershell: Clear-Host - Clear the screen.