Send command output to the Windows clipboard with clip command in Vista

If you're new here, you may want to subscribe to our RSS feed. Thanks for visiting!


Vista comes with a command-line utility clip.exe that can be used to redirect or pipe the output of another command to the Windows clipboard. The command uses a “pipe” and has the form

somecommand | clip

For example, to send a directory listing to the clipboard, the command is

dir | clip

Place the contents of a text file into the Windows clipboard with clip

The utility clip.exe can also be used to read a text file and place its contents in the Windows clipboard. The command has the form

clip < somefile.txt

Related Articles


Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader.

No comments yet.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

(required)

(required)