You can pipe any file or output into your clipboard using the command clip ( for CMD) and set-clipboard ( for powershell).

This is stupid handy for the crazy situations such as piping the output of a file to your clipboard and pasting in a word doc or blog post

clip < testme.txt

or

get-content "c:\testme.txt" - Totalcount 50 | set-clipboard

The above powershell command gets the first 50 lines of text from testme.txt and saves it to the clipboard.