How to Copy Text From a Command Window

By | August 2, 2016
Print pagePDF page

How to Copy Text From a Command Window

We recently published a tip on how to use a command to find out what your Windows 10 Product Key is. It worked for some, but apparently not for others, so we added a 3rd-party program to that post that can dig out your Windows Product Key. To see that page, click here.

One thing we did find out is that not many people know how to copy from from a command window – so we’re going to show you how to do that now.

In Windows 8 and Windows 10 press Windows Key + X to open the “power menu” and choose Command Prompt (Admin). In Windows 7, type CMD in the Start menu search and right-click it when it appears at the top and choose “Run as administrator”.

Once you have the Command Prompt window open, type in the following command:

IPCONFIG /ALL

Make sure you leave a space after the G and before the a slash>

 

If you followed the instructions above correctly, you now have a box showing you a lot of information about your Internet connection, your IP address, and other arcane stuff. So how do you copy all that information so you can paste it into a text file, a document or an email? You can’t use Ctrl+A to copy it all and you can’t highlight and use Ctrl+C. Try it.

But you can copy it – and paste it into a test file, document or an email.

See?

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>IPCONFIG

Windows IP Configuration
Ethernet adapter Ethernet:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Wireless LAN adapter Local Area Connection* 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Wireless LAN adapter Local Area Connection* 4:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

….

So what’s the trick? Here’s how you do it – the easy way:

Right-click on the title bar. If you want to copy everything inside the DOS window, choose “Edit” then “Select All”. Everything inside the DOS window will be selected. But wait! You can’t right-click in the windows and choose “Copy”. As soon as you click (right or left-click) inside that Window, nothing will be highlighted and you’ll have to start over. So, when everything is highlighted, right-click again on the title bar and choose “Copy” (copy will not be grayed-out if you have selected text in the box). Once you’ve clicked “Copy” all of the text which was highlighted will be copied to the Windows clipboard; you can then paste it wherever you want.

If you only want to select some of the information in the box, right-click on the title bar and choose “Mark”.  You can now drag your cursor over the text you want to copy to select it. Once the text is selected, right-click on the title bar again and choose “Copy”. The selected text will be copied and you can paste it in to a text file, document, email or Web page using Ctrl-V.

There are a lot of Windows commands you can run to get more information about your computer, and sometimes you’ll want to copy it and paste the information somewhere so you can save it. And guess what? Now you know how. Ain’t it great?

It will take some practice to get used to copying text from a command window, but once you learn it, you’ll use it.

This tip works in Windows 7, Windows 8.1 and Windows 10.

 

 

3 thoughts on “How to Copy Text From a Command Window

  1. Joyce

    No matter what I did I could not get the windows code I copied it from your typing it did not work, then i typed it in so many times and it would not work. I even downloaded the program you recommended. My Norton Antivirus removed it and said it was not safe. I guess I’ll never get it.

    Reply
    1. infoave Post author

      Nirsoft is a great freeware site and their stuff is 100% safe. Norton is virtually useless. It finds safe things dangerous but in many cases we’ve seen, it allows malware to be installed on computers.

      Reply

Leave a Reply

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