Copy-History – Copy a Previous Command to the Clipboard

It’s great that I can see my history with Get-History, but what if I want to edit it?  I can hit up-arrow to find it, but that doesn’t work if I copy-and-paste functions into my PowerShell window as I write/test the function?  In that case, I have to hit up-arrow through each line that I…

0

The Clipboard

Talk about a sea change.  I started off wondering how to read text out of the clipboard. Thanks to this link below, that’s trivial, and it even showed me a better way than | clip.exe to stuff it into the clipboard.  My exact words: “Well, that was easy.” http://stackoverflow.com/questions/1567112/convert-keith-hills-powershell-get-clipboard-and-set-clipboard-to-a-psm1-script Next, I wondered how to copy…

0