How to Copy Command Prompt Output to Windows Clipboard

Tech Site Labnol  has showed a quick workaround if you need to copy output from the Command Prompt into Windows Clipboard.

Suppose one is doing tracing or is interested in the output of commands like ping or tracert, he/she can directly copy the output to the clipboard and further use it.

To do this, one just has to use pipe operator – “|” after the command and followed by “clip” command. This will result in the output of the command will be copied to the Windows Clipboard.

Example being, execute the command “dir | clip” which will copy the output of dir command into the Windows Clipboard without printing it on the Command Prompt Window.

Read the Source Site for more.

Leave a Reply

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