Cutting and Pasting in the Command Prompt Window

Although you will usually use output redirection to store the output from command-line programs in files, you can also use cut and paste to move text into or out of a Command Prompt window.

To paste text into the window at the cursor location, click the window’s System Menu (the upper-left corner) and select Edit, Paste. It’s easier to do this without the mouse: just press Alt+Spacebar and type E P.

To copy text from the window to the Clipboard, click the window’s System Menu and select Edit, Mark. Alternatively, press Alt+Spacebar and type E M. Use the mouse to highlight a rectangular area of the screen and then press Enter. This copies the text to the Clipboard.

By default, the mouse does not ...

Get Windows 8 In Depth now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.