Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #v4
  2. Measure-Command { foreach($source in $sources)
  3. {
  4. $sourcepath = $source.path.replace('\','/')
  5. $count = $allstats.sourcefilename.Where({$_ -like "*$sourcepath*"}).count
  6. $array += [pscustomobject]@{count = $count; path = $source.path}
  7. }
  8. }
  9.  
  10. #v5
  11. Measure-Command {
  12.     foreach ($source in $sources)
  13.     {
  14. $sourcepath = $source.path.replace('\','/')
  15.         $array += [pscustomobject]@{
  16.         count = $allstats.sourcefilename.Where({$_ -like "*$sourcepath*"}).count
  17.         path = $source.path}
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement