Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $id = 1
- $tempfolder = "C:\TEMP\"
- gci $tempfolder -Include *.txt -Recurse |
- % { $_ | Select-Object @{N='ID';E={$id}},@{N='File Name';E={$_.Name}},
- @{n="lines";e={
- get-content $_ |
- measure-object -line |
- select -expa lines }
- }
- $id++}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement