Latest: Add Latest Article Here | Recommended: Add Recommended Article Here

Increase your website traffic, expand your business, get best perfect unique SEO content and many more.

Subscribe For Free Latest Updates!

We'll not spam mate! We promise.

Sunday, August 18, 2013



08 Aug 2013 Learn how to copy output from the command-line prompt directly to your Windows clipboard using the clip command.

couch mode print story

Like it or not, the command prompt is still an indispensable part of your Windows computer because there are still a bunch of things that can only be done by writing commands.

For instance, if the computer isn’t connecting to the Internet, you will probably be interested in the output of the “ping” or the “tracert” command. If you need to print the contents of a directory in Windows, the command “dir” will come to your rescue.

Copy Output to Clipboard Copy command line output to Windows Clipboard

Now here’s a little trick. If you add the pipe* operator (|) to your command followed by the “clip” command, the output of your original command will get saved to the Windows clipboard and won’t print inside the Command Prompt window.

Here are some examples:

dir | clip Copy the content of a folder to the clipboard.tree | clip  Display the recursive directory structure and save it to the clipboard.type error.log | clip Place the content of the file error.log to the clipboard.sort file.txt | clip Sort the file and save the sorted output to the clipbord.ipconfig /all | clip Get details of your network connection for sending to tech support.

The “clip” command may not be available on Windows XP but in that case, you can use the redirect operators, like > and >>, for saving the command output to a text file.

Alternatively, right-click anywhere inside the command window, select Mark from the contextual menu, use the mouse to highlight a block text and then press Enter to save it to the clipboard.

[*] The pipe operator (|) takes the output of one command and directs it into the input of another command which in our case is clip. (function(){var uv=document.createElement('script');uv.type='text/javascript';uv.async=true;uv.src='//widget.uservoice.com/WgTPAq6J1u0Fg5nXLMPTA.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(uv,s)})()Tech Blog » Software » DOS » Windows Clipboard » How to Copy the Command Output to Windows Clipboard

View the original article here


1 Comments : Post Yours! Read Comment Policy ▼
PLEASE NOTE:
We have Zero Tolerance to Spam. Chessy Comments and Comments with Links will be deleted immediately upon our review.

  1. It's really very complex in this busy life to listen news on TV, therefore I
    just use internet for that purpose, and obtain the latest information.

    my web site www minecraft net

    ReplyDelete



Copyright © 2016 - The SEO Consultant's Blog - All Rights Reserved
(Articles Cannot Be Reproduced Without Author Permission.)
Design By : SafeTricks & Techrar | Powered By: Blogger