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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.