how to clear command prompt code example

Example 1: clear terminal windows

cls
===============================
will clear the windows terminal

Example 2: clear cmd

just type cls and hit enter

Example 3: clear in windows cmd

cls  #this command clears the command window in Windows Command Prompt

Example 4: clear terminal on windows

; -------------------------------------------------------------------------
; Cntr-L should clear screen
; -------------------------------------------------------------------------
#IfWinActive ahk_class ConsoleWindowClass
^L::
Send cls{Enter}
return

#IfWinActive

Example 5: cmd clear

cls #cls == clear screen, clears all previous commands in the cmd

Tags:

Misc Example