Redirect output to clipboard

I would like to have a batch file that will execute a command and send its output to the clipboard.  Is there any way to do this?
UsfJamAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jmiller47Connect With a Mentor Commented:
The tool you need to do this is clip and is located on the Windows 2000 Resource Kit tools CDROM.


Clip

{command} | clip
clip < {file}

Place the command output file / specified file contents on the system clipboard.
0
 
UsfJamAuthor Commented:
What if I don't have access to that cd?
0
 
UsfJamAuthor Commented:
nevermind, found the download.  Looks like you get an easy 100 points.  Happy birthday.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.