This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 26th, 2012  |  syntax: None  |  size: 0.31 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. resolve-path *.pdb | % {
  2.     $pdb = $_
  3.     $fileName = split-path $pdb -leaf
  4.     $assembly = [io.path]::GetFileNameWithoutExtension($fileName)
  5.     $gac = "$env:windir\assembly\GAC_MSIL\$assembly"
  6.     if (test-path $gac) {
  7.         resolve-path "$gac\*" | % {
  8.             copy $pdb -destination $_ -force
  9.         }
  10.     }
  11. }
clone this paste RAW Paste Data