#powershell deepest folder top 1 alphabetical

Get-ChildItem -path “C:\getdeepestfolder\top1alphabetical\” -recurse | Sort-Object -property @{Expression={[regex]::matches($_.FullName, “\\”).count}; Ascending=$false} | Select-Object -property “FullName” -first 1

About Robert Matthew Cook

Hello, my name is Robert Matthew Cook. This blog is autoposted to from my main blog at www.sqlmashup.com. For more profile information or to leave a comment, please visit me there.
This entry was posted in Uncategorized. Bookmark the permalink.