Saturday, May 12, 2012

Pipe Commands to the Clipboard

You can redirect command output to tthe clipboard by using " | clip"

Examples:

REM copy directory content to the clipboard
dir | clip

REM copy computer name to the clipboard
hostname | clip

No comments: