Skip to content

Instantly share code, notes, and snippets.

@DamianStanger
Created September 19, 2014 08:21
Show Gist options
  • Save DamianStanger/2aaba9bea512c1089a4d to your computer and use it in GitHub Desktop.
Save DamianStanger/2aaba9bea512c1089a4d to your computer and use it in GitHub Desktop.
select-string -Path *.lnk -Pattern '(c|C):[- \w.\\_]+\.jpg' -AllMatches | % { $_.Matches } | % { $_.Value } | copy-item -destination .\copy\$_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment