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, September 09, 2004 10:46:05 PM 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, September 12, 2004 12:14:03 AM 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, September 12, 2004 7:52:56 AM UTC
Very cool. one less reason for me to use notepad :-)
Ian
Sunday, September 12, 2004 7:53:22 AM UTC
And yeah, this REALLY should be in the next cmd shell
Ian
Wednesday, September 15, 2004 9:29:34 PM 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.