Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to copy the content inside the cmd windows, and paste it in NotePad?

I tried to select "Mark", and highlight the console area, and try to press ctrl+v on a notepad, but it works sometimes and doesn't work other times. alt text

share|improve this question
This gets me every so often & I've been using Windows for more than 15 years! Yes, it's been like this since Windows 3.1 (& probably earlier) – ChrisF Jan 6 '10 at 8:58
up vote 4 down vote accepted

Press Enter after you highlight it to send it to the clipboard.

If you want to send the entire output of a command to a text file, you can simply use a chevron.


dir > C:\output.txt

and to append to a text file, 2 chevrons:

dir >> C:\output.txt
share|improve this answer

Once you've Marked, you have to hit Return to copy it :)

You may be interested in software such as Console2, which provides a wrapper around the shell, which among other things allows for copying in the style of every other application ever.

share|improve this answer

I use the right mouse button to copy and paste in the command window.

Works much nicer.

So mark your selection with the mouse, press the right mouse button to copy it to the clipboard.

And if you want to paste something from your clipboard, use the right mouse button again.

(this is however when the quick edit mode is enabled)

share|improve this answer
This only works when "QuickEdit Mode" is enabled in the console window properties. – grawity Jan 6 '10 at 14:45
correct, I forgot I enable this by default. – Davy Landman Jan 7 '10 at 8:38

Do a right-click into the window after making the selection. The selection box will disappear and the text will be in the clipboard.
If you do a left-click instead, it will start a new selection and copy nothing.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .