Keyboard shortcut to paste in Windows command prompt

14

4

Is there a keyboard shortcut to paste in the Windows command prompt (or at least powershell)?

I'm aware that you can right click, but it would be handy if it was possible without touching the mouse.

Richard Szalay

Posted 2009-07-31T14:07:33.997

Reputation: 611

1Remember Shift+Insert in QBasic? I was secretly hoping that would still work. – Jeshizaemon – 2012-02-15T18:31:32.597

Answers

2

Finally in Windows 10:

enter image description here

Unfortunately Microsoft resists to add SHIFT+INSERT ((

gavenkoa

Posted 2009-07-31T14:07:33.997

Reputation: 1 386

14

Press Alt+Space followed by E and finally P

This will open the alt Menu > Edit > Paste

facepalmd

Posted 2009-07-31T14:07:33.997

Reputation: 624

3btw Alt+ <space> -> E -> K is Block Select Mode where you hold down the <shift> key as you move the <arrow> keys to select text. Hitting <enter> copies any selected text to the buffer – facepalmd – 2009-07-31T16:25:11.000

5

Checkout this Stackoverflow article. They provide an AutoHotKey script. If you aren't familiar with AutoHotKey you should be. It is a free application that allows you to automate a ton of things on Windows. I use it for a number of tasks. You can even compile the scripts and then just run the executable. Great for distribution to less tech savvy folks or for running off a thumb drive for portability.

They also mention this:

ALT+SPACE+E+K <-- for copy

ALT+SPACE+E+P <-- for paste

Joshua Hunter

Posted 2009-07-31T14:07:33.997

Reputation: 361

2

Ctrl+Insert for copy Shift+Insert for paste

I am using Powershell in console2.

Dave Mateer

Posted 2009-07-31T14:07:33.997

Reputation: 163

0

Closed on stackoverflow, but AutoHotKey works perfectly:

; Paste into CMD window using CTRL+SHIFT+INSERT
^+Insert::
  WinGetClass, sClass, A
  If (sClass = "ConsoleWindowClass")
  {
    send {alt down}{space}{alt up}ep
  }
  return

Malcolm Boekhoff

Posted 2009-07-31T14:07:33.997

Reputation: 97

0

You can use PowerShell inside ConEmu, which lets you use ctrl-v.

Ctrl-v also works in the PowerShell ISE.

dangph

Posted 2009-07-31T14:07:33.997

Reputation: 3 478