If you’re like most Windows users, you probably use the Windows command prompt a lot. And if you’re like most Windows users, you probably use CTRL+C / CTRL+V to paste text into the command prompt. But what if you want to be able to paste text in the command prompt without having to use the keyboard? There are a few ways to do this. The easiest way is to enable “Paste Special” in the “Edit” menu of the Windows command prompt. When you enable “Paste Special,” CTRL+C / CTRL+V will now paste text exactly as it is entered into the command prompt, without any formatting or other modifications. If that’s not enough for you, there are also a few third-party tools that can help you paste text in the command prompt without having to use the keyboard. One such tool is called “PasteBin,” and it can be found online at www.pastebin.com/. PasteBin allows you to paste text into the command prompt using your mouse instead of your keyboard, which can be helpful if you have limited mobility or if your hands are busy doing something else. ..
One of the more irritating problems with the Windows command prompt is that you can’t paste anything into the window using the keyboard easily—it requires using the mouse. Here’s how to fix that problem.
The solution, as with many Windows shortcomings, is to use a quick AutoHotkey script to enable pasting from the keyboard. What it actually does is take the clipboard contents and use the SendInput function to send the keystrokes really quickly to the console window.
But first… here’s another way to do it.
Enabling CTRL + C and CTRL + V in Windows 10
All you have to do to get copy and paste working in Windows 10 is to right-click on the command prompt’s title bar, choose Properties…
And then click “Enable new Ctrl key shortcuts”. You’ll probably have to click the “Enable experimental console features” checkbox first though.
And now you can copy and paste in the command prompt.
The Alternate Built-In Way to Paste from the Keyboard (Windows 10, 8, 7, or Vista)
There is actually a way to paste something using the keyboard, but it’s not terribly convenient to use. What you’ll have to do is use the Alt+Space keyboard combination to bring up the window menu, then hit the E key, and then the P key. This will trigger the menus and paste into the console.
Once you get used to doing it, it really isn’t so bad… but who wants to use a different combination for one application than the rest of Windows?
The AutoHotkey Script Ctrl+V Awesomeness
You’ll need to first make sure that you’ve got AutoHotkey installed, and then create a new AutoHotkey script or add the following to your existing script. We’ve also provided a download in case there are any formatting problems.
What this script does is simply use the SendInput function to send the data into the window, which is a lot faster than any other method.
Note: the script doesn’t paste line breaks very well. If you’ve got a better solution for that, feel free to let us know in the comments and we’ll update the post.
Downloadable AutoHotkey Script
Simply grab the script, save it anywhere, and then double-click on it to start it. You can kill it through the tray icon if you want—if you’d like to hide the tray icon, add #NoTrayIcon to the top of the script.
Download the PasteCommandPrompt AutoHotkey Script from howtogeek.com