Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How do I paste into the Windows CMD prompt by using only the keyboard?

The usual way to paste text in a cmd.exe shell is to right-click. How can you paste text using only the keyboard?

share|improve this question

marked as duplicate by alex, quack quixote, BinaryMisfit Nov 9 '09 at 3:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Possible Dupe:… – Mehper C. Palavuzlar Nov 8 '09 at 21:19
@mehper Nice find! – alex Nov 8 '09 at 21:34
On Windows 10, you can enable Ctrl+C and Ctrl+V in cmd.exe, see – Franck Dernoncourt Jul 19 '15 at 21:59
up vote 17 down vote accepted

ALT+Space E P :

ALT+Space for System Menu
E for Edit sub-menu
P for Paste item

share|improve this answer
I'm surprised there isn't a more direct way, without going through the system menu, but I'm sure you are right. – John D. Cook Nov 9 '09 at 1:37
yup that's how i do it. – Epaga Nov 13 '09 at 13:48
#IfWinActive, ahk_class ConsoleWindowClass
^v:: ;Paste in console
send !{Space}EP

in AutoHotKey, allowing you to Control+V to paste :)

With AutoIt you can also fix the ALT-F4 on your command prompt. Combined the script will be:

#Include <HotKey.au3>
#Include <vkConstants.au3>
; Assign "CTRL-V" to PasteDos()
_HotKeyAssign(BitOR($CK_CONTROL, $VK_V), 'PasteDos', -1, "[CLASS:ConsoleWindowClass]")
; Assign "ALT-F4" to ExitDoc()
_HotKeyAssign(BitOR($CK_ALT, $VK_F4), 'ExitDos', -1, "[CLASS:ConsoleWindowClass]")

; Make sure we don't exit
While 1
Func PasteDos()
   Send(ClipGet ( ))

Func ExitDos()
   WinClose("[ACTIVE]", "")

To get this running install AutoIt, add the Hotkey include, save the above script with au3 extension and run it.


share|improve this answer

You can read more about it here. The short (but unpleasant answer) is:

ALT + SPACE + E + K <-- for copy and
ALT + SPACE + E + P <-- for paste.

share|improve this answer
+1 for "short but unpleasant answer." And thanks for the link to the further explanation on StackOverflow. – John D. Cook Nov 8 '09 at 21:41
No problem. If you stop by SO, upvote the answers there since they're really good :) – alex Nov 8 '09 at 22:03

In addition to these answers, it might be noted that in cmd.exe you have to enable quick-edit mode in order for alt+space, p to work. Quick-edit mode can be enabled by clicking on the top left corner in cmd.exe, then selecting properties, then going to the options tab.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .