去除Windows NTFS 路径260字符限制 作者:Coioidea 时间:2020年07月23日 分类:默认分类 字数:1214 warning: 这篇文章距离上次修改已过270天,其中的内容可能已经有所变动。 方法仅适用于win10 1907之后哦 A registry key allows you to enable or disable the new long path behavior. To enable long path behavior set the registry key at `HKLM\SYSTEM\CurrentControlSet\Control\FileSystem` `LongPathsEnabled (Type: REG_DWORD)`. The key's value will be cached by the system (per process) after the first call to an affected Win32 file or directory function (list follows). The registry key will not be reloaded during the lifetime of the process. In order for all apps on the system to recognize the value of the key, a reboot might be required because some processes may have started before the key was set. The registry key can also be controlled via `Group Policy at Computer Configuration > Administrative Templates > System > Filesystem > Enable NTFS long paths`. You can also enable the new long path behavior per app via the manifest: ``` true ``` https://docs.microsoft.com/zh-cn/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN#maxpath