Why does the 260 character path length limit exist in Windows?

后端 未结 11 1195
孤城傲影
孤城傲影 2020-11-22 03:18

I have come up against this problem a few times at inopportune moments:

  • Trying to work on open source Java projects with deep paths
  • Storing deep Fitne
11条回答
  •  时光说笑
    2020-11-22 03:49

    You can enable long path names using PowerShell:

    Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name LongPathsEnabled -Type DWord -Value 1 
    

    Another Version is to use a Group Policy in Computer Configuration/Administrative Templates/System/Filesystem:

提交回复
热议问题