如何在Windows10上修改文件路径260字符的限制?

我们都知道,在Windows10上默认支持file path是260个字符,如果超过就会弹出提示'The file name(s) would be too long for the destination folder. You can shorten the file name and try again, or try a location that has a shorter path.'

对于此问题我们可以通过修改注册表或者Local group policy来解除限制,具体可以参考下面步骤。

  • 修改注册表方法:
    1. 使用Admin登陆machine,在run中输入regedit并回车;
    2. 找到路径 ’Computer -> HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Control -> FileSystem‘;
    3. 在右边属性字段中找到‘LongPathsEnabled‘字段,选择并右键编辑;
    4. 在弹出的编辑窗口中,修改Value Data为1并保存。

       

 

  • 修改Local Group Policy方法:
    1. 使用admin登陆machine,在run中输入gpedit.msc并回车;
    2. 在弹出的local group policy editor中,找到路径‘Computer Configuration -> Administrative Templates -> System -> Filesystem’;
    3. 并在右边setting中选择‘Enable Win32 long paths’并双击;
    4. 在弹出的窗口中选择‘Enabled’并保存。

       

修改完成后,需要重启电脑使修改生效。

感谢阅读。

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值