Copy Output from Command Line Applications to the Clipboard
With Windows Vista and 7, an option is available to copy output from the command line to the Clipboard by piping it into the clip command:
command | clip
Below is an example of copying the output of the tasklist command to the Clipboard.
The contents of a file can be piped into the Clipboard by reserve.
clip < filename
The example below copies the contents of the file test.txt to the Clipboard.