Skip to content

Instantly share code, notes, and snippets.

@bartelink
Created July 4, 2012 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bartelink/3046922 to your computer and use it in GitHub Desktop.
Save bartelink/3046922 to your computer and use it in GitHub Desktop.
Get-GrepWinClipboardFiles. Example: Get-GrepWinClipboardFiles| %{ tf checkout $_ }
function Get-ClipboardText {
$command = {
add-type -an system.windows.forms
[System.Windows.Forms.Clipboard]::GetText()
}
powershell -sta -noprofile -command $command
}
function Get-GrepWinClipboardFiles() {
get-ClipboardText | ConvertFrom-Csv -del "`t" | %{ $_.Path+"\"+$_.Name }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment