Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #v4
- Measure-Command { foreach($source in $sources)
- {
- $sourcepath = $source.path.replace('\','/')
- $count = $allstats.sourcefilename.Where({$_ -like "*$sourcepath*"}).count
- $array += [pscustomobject]@{count = $count; path = $source.path}
- }
- }
- #v5
- Measure-Command {
- foreach ($source in $sources)
- {
- $sourcepath = $source.path.replace('\','/')
- $array += [pscustomobject]@{
- count = $allstats.sourcefilename.Where({$_ -like "*$sourcepath*"}).count
- path = $source.path}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement