Is there any way of clearing the command prompt screen in windows using keyboard shortcuts?
13 Answers
NO, But you can use CLS command to clear the whole screen, Esc (Escape) key will clear the input line.
In addition, pressing Ctrl + C will move the cursor to a new blank line.
If you really really want to do that with a keyboard shortcut (myself included) you might turn to using autohotkey and write a little script like this:
; -------------------------------------------------------------------------
; Cntr-L should clear screen
; -------------------------------------------------------------------------
#IfWinActive ahk_class ConsoleWindowClass
^L::
Send cls{Enter}
return
#IfWinActivewhat the script does ...
- first look if one is within console application
- if CTRL+L is pressed
- write
clsto the console and then hit ENTER
So long i also research but found best way to achieve this by defining Doskey Macro
i defined macro like this
doskey 1=cd\ $T cls
this will do two things by simple writing 1 and hit enter
- Bring you on clean Command route
- Clear entire screen
Note: you can add multiple desire command under one macro by separating them with $T