2012-10-03

How to pipe command output to Windows clipboard

Use clip.exe!

Copy Command Line Output to Windows Clipboard Directly:

dir /h | clip – Copy the help manual for DIR command to the clipboard

tracert www.labnol.org | clip – Trace the path from your computer to another website – the output is automatically copied to the clipboard and not displayed on the screen.

netstat | clip - Check if your computer is connecting to websites without your knowledge.

 The clip.exe utility can also be used to copy contents of text files to clipboard directly from the command line.
 clip < C:\AUTOEXEC.bat – this will copy all the text from autoexec.bat to your Windows Clipboard.

No comments: