Command Prompt closes opening batch file

https://www.thewindowsclub.com/How to Enable CTRL+C & CTRL+V in Command Prompt in Windows 11/10

By default, and inconveniently so for most PC users, you can’t paste text into the Command Prompt window in Windows 11 or Windows 10, using the keyboard easily – this action requires using the mouse. In this post, we will show you how to Enable or Disable CTRL+C & CTRL+V (copy/paste) in Command Prompt in Windows 11/10.

Enable CTRL+C & CTRL+V in Command Prompt

If you want to enable or disable CTRL+C & CTRL+V to easily paste in Command Prompt on your Windows 11/10 PC, you can do so in either of the following ways:

  1. Configure Ctrl key shortcuts in Command Prompt settings
  2. Paste from Command Prompt menu
  3. Use AutoHotkey Script

Let’s see a description of each of the methods.

1] Configure Ctrl key shortcuts in Command Prompt settings

To enable or disable CTRL+C & CTRL+V to easily paste in Command Prompt on your Windows 11/10 PC, you can configure the Ctrl key shortcuts in Command Prompt settings. Here’s how:

  • Press Windows key + R to invoke the Run dialog.
  • In the Run dialog box, type cmd and hit Enter to open Command Prompt.
  • Once the CMD prompt window opens, right-click on the command prompt’s title bar, and select Properties.
  • In the Properties sheet that opens, check the Enable new Ctrl key shortcuts option.

Note: If you’re running Windows 10, you may have to check the Enable experimental console features (applies globally) option first.

You should now be able to copy text and then paste it into the command prompt.

2] Paste from Command Prompt menu

Enable or Disable CTRL+C & CTRL+V in Command Prompt-2

This is an alternate Windows 11/10 built-in method to paste from the command prompt menu using your keyboard. This action will trigger the menus and paste into the console.

To paste from the command prompt menu using the keyboard, do the following:

  • Open command prompt.
  • Once CMD prompt window opens, press the Alt+Space keyboard shortcut to bring up the window menu.
  • Now, tap the E key on your keyboard.
  • Then tap the P key to paste the copied text.

3] Use AutoHotkey Script

This method requires you to create the AutoHotkey script for Ctrl+V. To do this, you’ll need to first download and install AutoHotkey on your Windows PC, and then create a new AutoHotkey script or add the syntax below to your existing script.

#IfWinActive ahk_class ConsoleWindowClass
^V::
SendInput {Raw}%clipboard%
return
#IfWinActive

When you run this script, what it does is simply use the SendInput function to send the copied text into the window – this method is a lot faster than any other method.

That’s it on the three ways to Enable or Disable CTRL+C & CTRL+V in Command Prompt in Windows 11/10!

Related post: How to open Command Prompt from the Task Manager using CTRL key

How do I fix Ctrl C and Ctrl V not working?

If the Ctrl+C or Ctrl+V keyboard shortcuts are not working on your Windows 11/10 PC, the first and easiest solution you can restart of your computer. Most affected users reported this action worked for them. To restart your computer, you can press Windows key + X to open Power User menu, then tap U key on your keyboard, then finally tap R key.

How do I enable Ctrl C and Ctrl V in Excel?

To enable Ctrl C and Ctrl V in Excel, you need to open the clipboard and enable the clipboard shortcut. To enable Ctrl C and Ctrl V in Excel, do the following: Go to the Home tab. Click the small icon in the lower right-hand corner of the clipboard section to open the clipboard. Click the Options button. Now, uncheck the Show Office Clipboard When Ctrl+C Pressed Twice option.

How do you lock and unlock a laptop keyboard?

10

This article was originally posted on 9to5linux.com. Read here

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top