Dies ist eine alte Version des Dokuments!
quelle: https://stackoverflow.com/questions/12697259/how-do-i-find-files-with-a-path-length-greater-than-260-characters-in-windows Detailed instructions:
Run PowerShell Traverse to the directory you want to check for filepath lengths (C: works) Copy and paste the code [Right click to paste in PowerShell, or Alt + Space > E > P] Wait until it's done and then view the file: cat longfilepath.txt | sort Explanation:
Out-File longfilepath.txt ; – Create (or overwrite) a blank file titled 'longfilepath.txt'. Semi-colon to separate commands.
cmd /c „dir /b /s /a“ | – Run dir command on PowerShell, /a to show all files including hidden files. | to pipe.
ForEach-Object { if ($_.length -gt 250) {$_ | Out-File -append longfilepath.txt}} – For each line (denoted as $_), if the length is greater than 250, append that line to the file. </code>
