How do I find files with a path length greater than 260 characters in Windows?

后端 未结 8 1975
时光取名叫无心
时光取名叫无心 2020-12-04 06:11

I\'m using a xcopy in an XP windows script to recursively copy a directory. I keep getting an \'Insufficient Memory\' error, which I understand is because a file I\'m tryin

8条回答
  •  感动是毒
    2020-12-04 06:59

    do a dir /s /b > out.txt and then add a guide at position 260

    In powershell cmd /c dir /s /b |? {$_.length -gt 260}

提交回复
热议问题