Home > shell > Piping text to the clipboard in Vista and Windows 7

Piping text to the clipboard in Vista and Windows 7

Microsoft added a new command line tool to Vista and Windows 7: clip.exe. This nifty little utility allows user to copy program output to the clipboard on the windows command line. Its usage is pretty straightforward:

dir | clip – copies the output of the dir command to the clipboard
clip < example.txt – copy the contents of the file example.txt to the clipboard

  1. No comments yet.
  1. No trackbacks yet.

 
Performance Optimization WordPress Plugins by W3 EDGE