Copy CommandLine Output To Windows Clipboard

Read Time:38 Sec

Thank you, Amit Agarwal (commandline tip)!

The following is a great little tip for working with the Windows Commandline interface:

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.

 

http://img.labnol.org/di/copy-to-clipboard.gif

Author

Stewart Schatz

Career: Principal CNC Consultant for Syntax Systems Limited specializing Oracle JD Edwards EnterpriseOne and the technology that supports it. Side Hustle: Owner/Operator of E1Tips.com Location: Lancaster, PA USA  What I like to do: Invest in Family, Explore Technology, Lead Teams, Share Knowledge/Experience, Hunt, Hike, etc.
Happy
Happy
0
Sad
Sad
0
Excited
Excited
0
Sleepy
Sleepy
0
Angry
Angry
0
Surprise
Surprise
0

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Previous post Business Services SBF and EAR File Are Not Created During BSSV Package Build
Next post Unable to Delete iSeries Physical File