Copy CommandLine Output To Windows Clipboard
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.
Author
Stewart Schatz
More Stories
F986110.JCPRTQ Is Not The Print Queue
In the F986110, the JCPRTQ (Data Dictionary = Print Queue) column is used to store the port number of the JDE services running on the execution host.
JDE CNC + JDE Developer ≠ 1
Recently, while scrolling on this platform, where we all strive to present our best professional selves, I came across a job posting titled JD Edwards E1 CNC/Developer. To be honest, it kind of scared me.
How to Use the CMDKEY Command to Manage Stored Credentials on Windows
The cmdkey command is a Windows utility that lets you create, delete, and manage stored credentials for network authentication. This is particularly useful…
How to Print a Directory Structure Using PowerShell: Step-by-Step Guide
If you need to print out the directory structure and list the files within, this PowerShell script will help you...
Windows God Mode… What!?!
Windows God Mode is a hidden feature in the Windows operating system that allows users to access all of the system’s control panel options and settings in a single place.
How To Test A SQL Server Connection
There is an easy way to test your SQL Server connection when running Windows without any special software. I found...
Average Rating