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

If you're new here, you may want to subscribe to Windows Reference 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

  • Share/Bookmark

Random Posts


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.

Trackbacks & Pingbacks

No trackbacks/pingbacks yet.

Comments

Good Day

Just wanted to share my new experience.

If your Windows XP denies to start due to an error related to missing HAL.DLL, invalid Boot.ini or any other critical system boot files you can fix this by using the XP installation CD. Just boot from your XP Setup CD and enter the Recovery Console. Then launch “attrib -H -R -S” on the C:\Boot.ini file and delete it. Launch “Bootcfg /Rebuild” and then Fixboot

Regards,
Carl

Hi. I on numerous occasions scan this forum. This is the oldest culture undisputed to ask a topic.
How multitudinous in this forum are references progressive behind, knavish users?
Can I bank all the advice that there is?

Using internet is simple as hell. But I can tell y ou right now, it can be very hard, if you are the first time user.
So, first thing I suggest – open the Explorer, and type in the address you like.
You’ll get there really fast, it depends on your connection speed.
Good luck.

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=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)