A simple PowerShell sript that will return the length of the longest line from the path it is executed.
$len = 0; dir -r | %{ if ($_.FullName.Length -gt $len) { $len = $_.FullName.Length } }; $len
Source: Lifted from Johan Arwidmark
For every 1603 in the World
A simple PowerShell sript that will return the length of the longest line from the path it is executed.
$len = 0; dir -r | %{ if ($_.FullName.Length -gt $len) { $len = $_.FullName.Length } }; $len
Source: Lifted from Johan Arwidmark