Scott Hanselman

Piping command-line output directly to the Clipboard with .NET - now THAT'S useful

September 9, '04 Comments [5] Posted in Programming
Sponsored By

I was talking to Jason Whittington the DM Smartie today and he told me an interesting anecdote about he and Mike Woodring.  The result is this riduclously short C# application that lets you do this:

 c:\>type filename | clipboard

Now THAT'S hot.  As I am a command-line fellow and will gladly take the Pepsi Challenge against any of you "all windows move-em around" fools, I appreciate such useful things. 

Now, go to Jason's site and see how he and Mike did it - then slap your forehead and go Doh!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb
Thursday, 09 September 2004 22:46:05 UTC
"all windows move-em around fools" LOL

Great find, BTW. How in the world has this not been included functionality in Windows? Doh indeed!
Sunday, 12 September 2004 00:14:03 UTC
Or even more to the point... why did it take so long for someone to think of doing this? I'm a keyboard junkie too, why didn't I think of it? :)
Sunday, 12 September 2004 07:52:56 UTC
Very cool. one less reason for me to use notepad :-)
Sunday, 12 September 2004 07:53:22 UTC
And yeah, this REALLY should be in the next cmd shell
Wednesday, 15 September 2004 21:29:34 UTC
Mac OS X's had this since it was created:

cat x.txt | pbcopy

There's also a pbpaste that's less obviously useful.
Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.