如何移动带有路径名称的文件夹/文件>在Windows 8.1中为255个字符? [英] How to move folder/files with path names > 255 characters in Windows 8.1?
问题描述
我已经找了几年了,我发现的唯一可能的方法是使用 subst
方法。我不想搞砸这个。我只想将一个目录 X
复制/移动到 Y
。
I have looked around for ages, and the only possible way I have found is to use the subst
method. I don't want to mess about with this. I simply want to copy/move a directory, X
, to location Y
.
不在乎我是否要制作一个 .bat
脚本,制作一个ruby脚本,或牺牲山羊和处女到异教的神,只要我有一些方法移动
I don't care if I have to make a .bat
script, make a ruby script, or sacrifice goats and virgins to pagan gods, as long as I have some way to move that folder from X to Y without having to mess about with substituting path names and so on.
推荐答案
我终于找到了一个很好的解决方案!
I finally found a good solution!
救主是
Robocopy默认支持路径名称> 256,甚至提供一个标志, OFF 支持长路径名(标志: / 256
)。
Robocopy supports path names > 256 by default, and even provides a flag that lets you turn OFF support for long path names (flag: /256
).
Robocopy的使用示例:
Example usage of Robocopy:
robocopy / EC:/ path / with / very / long / names / in / it C:/ new / path
这篇关于如何移动带有路径名称的文件夹/文件>在Windows 8.1中为255个字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!