21.7. Clipboard Helpers

I do not remember anymore how many times I have wanted to have the output of a command placed in the Windows clipboard so that I could paste it in some other program. Until recently, that was downright impossible without using a third-party program that accepts piped text and sets that on the clipboard buffer. Windows Vista finally fixes that and ships with a nice utility called clip.exe. It does just what we need most of the time; it sets all the text it has been piped in as the clipboard contents. Unfortunately, we cannot say we have this problem solved. First, clip.exe does not handle anything but text, and the Windows clipboard can contain various file formats: rich text, HTML, images, files, and many more. Second, ...

Get Pro Windows PowerShell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.