Benutzer-Werkzeuge

Webseiten-Werkzeuge


onedrive

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
onedrive [2022/10/10 08:31] edvconedrive [2022/10/10 08:33] (aktuell) edvc
Zeile 1: Zeile 1:
 +long path lange pfade
 +
 quelle: https://stackoverflow.com/questions/12697259/how-do-i-find-files-with-a-path-length-greater-than-260-characters-in-windows 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: 
 <code> <code>
-Out-File longfilepath.txt ; – Create (or overwrite) a blank file titled 'longfilepath.txt'. Semi-colon to separate commands. +Out-File longfilepath.txt ; cmd /c "dir /b /s /a" | ForEach-Object { if ($_.length -gt 250) {$_ | Out-File -append longfilepath.txt}}
-</code> +
- +
-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> </code>
onedrive.1665390711.txt.gz · Zuletzt geändert: von edvc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki