Copy text from a Windows CMD window to clipboard

Another option, if you know ahead of time that you want the results of a command to be placed on the clipboard, is to pipe your output to the CLIP utility.

Here are a two simple examples

echo Hello world!|clip

dir|clip

Leave a Comment