May 26, 2010

Copying the text from command prompt in Windows.

I still feel that the command prompt in Windows is a very powerful tool while troubleshooting an issue on a computer. Though its Command Line Interface (CLI) is mostly onto typing the commands at the prompt to get the results, you can also use your mouse to do some copying operations which can be very useful many times. However this option works only in the windowed mode operation of the Command prompt.

The option to copy the information from command prompt might be handy at certain situations. Here are some of them.

1. You might want to copy a MAC address of a network card in your computer which can be found by a simple "IPCONFIG" command.
2. When you have to send a list of processes(from the "TASKLIST" command) running on your computer to an expert for advise.
3.  Creating a list of Files in a folder.

How to Copy the Text?

It is fairly simple. Let me explain about how to copy the MAC address of your network card.

1. Go to command prompt. (Start --> Run --> type cmd --> press Enter.)
2. At the Prompt type "IPCONFIG /all". You will get a page like this one given below. Please note that your results might differ from the picture.



3. From the big list of all the network adapter details of your computer, find the network adapter for which you need the MAC address.
4. The sequence of numbers next to the PHYSICAL ADDRESS is the MAC address of your computer.





5. Right click anywhere on the command prompt and click MARK from the context menu.




6. Select the MAC address with your mouse.
7. Right Click again to copy the marked text to the clipboard.





8. You can paste this detail to any document or to any form.

The operation demonstrated above will also be very useful while working on routers and switches on the network to configure port filtering etc.,

To summarize,

There is an option in command prompt to mark the text  with the help of your mouse. All you have to do is use the right click button and click mark. Select the text in command prompt and right click. The text selected will be copied to the clipboard.

__

Laters

No comments:

Related Posts with Thumbnails