vote up 4 vote down star
1

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?

flag
1  
Possible Dupe: superuser.com/questions/62598/… – Mehper C. Palavuzlar Nov 8 at 21:19
1  
@mehper Nice find! – alex Nov 8 at 21:34

closed as exact duplicate by alex, ~quack, Diago Nov 9 at 3:49

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question.

4 Answers

vote up 5 vote down check

ALT+Space E P :

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

link|flag
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 at 1:37
yup that's how i do it. – Epaga Nov 13 at 13:48
vote up 6 vote down

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.

link|flag
+1 for "short but unpleasant answer." And thanks for the link to the further explanation on StackOverflow. – John D. Cook Nov 8 at 21:41
No problem. If you stop by SO, upvote the answers there since they're really good :) – alex Nov 8 at 22:03
vote up 4 vote down
#IfWinActive, ahk_class ConsoleWindowClass
^v:: ;Paste in console
send !{Space}EP
return
#ifWinActive

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

link|flag
vote up 3 vote down

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.

link|flag

Not the answer you're looking for? Browse other questions tagged or ask your own question.