How do I create a keyboard shortcut for a command in the Windows command prompt?

For example, to clear the Windows command prompt, the command normally used is cls - analogous to the clear command in Linux. I want create a keyboard shortcut for this. Ideally, I'd like to create the shortcut using ctrl+ L since this keyboard shortcut also works to run the clear command in the Linux command prompt.

Is that possible to create the new commands for Windows command prompt?

  • Are you looking to create new commands or new keyboard shortcuts? Please edit your questions and provide the necessary clarification required to answer your question. – Ramhound Feb 6 at 11:57
  • 1
    AT Ramhound obviously a keyboard shortcut that runs the cls command would satisfy what he is asking for. He even gave an example - that example. – barlop Feb 6 at 12:29
  • 1
    this may help superuser.com/questions/585238/… and funnily enough AT ramhound you actually commented on an answer on that question a year ago – barlop Feb 6 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.