Copying and Pasting Text

Maintained on

When using Command Prompt, you often want to copy text shown on the screen or paste a command you copied elsewhere.

How copy and paste works in Command Prompt depends on your Windows version and settings. This article explains the operations and what to do when copying does not work.

Quick Answer

ActionKeyboardMouse
CopyAfter selecting, Ctrl + C or EnterAfter selecting, right-click
PasteCtrl + VRight-click with no selection
チェック

In Windows 10 (version 1703 or later) and Windows 11, Ctrl + C / Ctrl + V work by default. On older Windows, or if “Enable Ctrl key shortcuts” is turned off in the console settings, use the Enter key or right-click instead.

How to Copy Text

First, select the text by dragging with the mouse. To use only the keyboard, press Ctrl + M to enter mark mode, then select with the arrow keys and Shift.

After selecting, copy with any of the following:

  • Ctrl + C (newer consoles)
  • Enter
  • Right-click
The console shown is a sample.
- □ ×
Command Prompt Icon
Command Prompt
Microsoft Windows [Version xx.x.xxxxx.xxx]
(c) 2026 Ribbit App Development All rights reserved.
 
C:\users\user>Select a range, then press Enter or right-click to copy.
チェック

If you press Ctrl + C with nothing selected, it interrupts the running command instead.

How to Paste Text

  • Ctrl + V (or Shift + Insert)
  • Right-click with no text selected

If you right-click while text is selected, it copies instead of pasting.

The console shown is a sample.
- □ ×
Command Prompt Icon
Command Prompt
Microsoft Windows [Version xx.x.xxxxx.xxx]
(c) 2026 Ribbit App Development All rights reserved.
 
C:\users\user>Right-click with nothing selected to paste the text.
おすすめ書籍※ 広告を含む場合があります
中小企業経営者のためのRPA入門 RPA導入を成功させる方法

中小企業経営者のためのRPA入門 RPA導入を成功させる方法

60分でわかる! AIエージェント 超入門

60分でわかる! AIエージェント 超入門

コマンドラインの黒い画面が怖いんです。

コマンドラインの黒い画面が怖いんです。

知識・才能ゼロでもらく~に月10万円稼ぐ! よくわかるAI副業超入門

知識・才能ゼロでもらく~に月10万円稼ぐ! よくわかるAI副業超入門

When Copy and Paste Does Not Work

  1. Right-click the title bar and open “Properties”
  2. On the “Options” tab, check “QuickEdit Mode” (required for selecting and copying)
  3. Check “Enable Ctrl key shortcuts” (Windows 10 and later)

In Windows Terminal, the default terminal in Windows 11, Ctrl + C copies the selection and Ctrl + V pastes.

Copy Command Output to the Clipboard

Instead of selecting text on screen, the clip command copies a command’s output directly to the clipboard.

- □ ×
Command Prompt Icon
Command Prompt
Microsoft Windows [Version xx.x.xxxxx.xxx]
(c) 2026 Ribbit App Development All rights reserved.
 
C:\users\user>ipconfig | clip

You can then paste the result into Notepad or another app with Ctrl + V.

Summary

  • Copy: select text, then Ctrl + C, Enter, or right-click
  • Paste: Ctrl + V, or right-click with nothing selected
  • If it does not work, check “QuickEdit Mode” and “Ctrl key shortcuts” in Properties
#PowerShell #Command Prompt #Batch File