Windows 7 是否修复了 255 个字符的文件路径限制?
据我了解,文件路径中 255 个字符的限制是 Windows 的限制。 这样做的理由是什么? 如果是这样,这个问题在 Windows 7 中得到解决了吗?
在我们的持续集成实践中,我们经常有深度嵌套的项目结构,并且能够超过 255 个字符将非常有用。 现在,我们在某种程度上被迫以这样的方式构建我们的项目,以免达到这个人为的上限。
As I understand it, the limitation of 255 characters in a file path is a Windows limitation. What is the reasoning for this? If so, has this been resolved in Windows 7?
In our continuous integration practices, we often have deeply nested project structures and it would be extremely useful to be able to go beyond 255 characters. Right now we are somewhat forced to structure our projects in such a way as to not hit this artificial ceiling.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
请参阅 http://msdn.microsoft.com/en-us /library/aa365247(VS.85).aspx
这解释了 Windows API 的 Unicode 版本具有更高的限制,以及如何启用它。
See http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx
This explains that Unicode versions of Windows APIs have higher limits, and how to enable that.
如果需要,您可以使用 subst 来绕过该限制。
You can get around that limit by using subst if you need to.
变通办法不是解决方案,因此答案是“否”。
仍在寻找变通办法,以下是可能的解决方案:http://support.code42.com/CrashPlan/Latest/Troubleshooting/Windows_File_Paths_Longer_Than_255_Characters
Workarounds are not solutions, therefore the answer is "No".
Still looking for workarounds, here are possible solutions: http://support.code42.com/CrashPlan/Latest/Troubleshooting/Windows_File_Paths_Longer_Than_255_Characters
@Cort3z:如果问题仍然存在,此修补程序:
https://support.microsoft.com/en-us/kb/2891362
应该解决它(从win7 sp1到8.1)
@Cort3z: if the problem is still present, this hotfix:
https://support.microsoft.com/en-us/kb/2891362
should solve it (from win7 sp1 to 8.1)
从 Windows 10 版本 1607 开始,已通过设置注册表项
https://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx?f=255&MSPPError=-2147217396#maxpath
From Windows 10 version 1607, the limitation has been removed by setting a registry key
https://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx?f=255&MSPPError=-2147217396#maxpath