I use this script to list all paths that are longer than 245 characters and it works as it should ecept that I get newline between length and the path.
How can I get the length and the path on the same line?
BR
Hakan
Code:
get-childitem -r | % {if ( $_.FullName.Length -gt 245) {write-output $_.FullName.Length $_.FullName}} | tee-object -filepath c:\pathlength.txt
BR
Hakan