如何移动具有路径名的文件夹/文件>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 wish I didn't have to mess about with this. I simply want to copy/move a file or directory, X
, to location Y
.
我可以制作一个 .bat
脚本或其他类型的脚本来实现这一点.
I'm fine with making a .bat
script, or other kinds of scripts to achieve this.
PS:这被标记为主题,我很好,但它是在编程上下文中完成的.
PS: this is marked as of topic, which I'm fine with, but it was being done in a programming context.
推荐答案
我终于找到了一个好的解决方案!
I finally found a good solution!
救世主是
Robocopy 支持路径名 >256 默认情况下,甚至提供一个标志,让您关闭支持长路径名(标志:/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/E C:/path/with/very/long/names/in/it C:/new/path
这篇关于如何移动具有路径名的文件夹/文件>Windows 8.1 中的 255 个字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!