Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 26 0 characters, and the directory name must be less than 248 characters.

$
0
0

Hello all,

I am trying to run a basic script to get a list or large files on a directory, however I am hitting the 260 char limit on either folders or filenames.  Is there a way to massage the results so the script can run properly?  Script below:

Get-ChildItem c:\ -recurse | sort -property length -desc | select -first 10  | format-table Name, Length -autosize

 


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>