如何移动具有路径名的文件夹/文件>Windows 8.1 中的 255 个字符? [英] How to move folder/files with path names > 255 characters in Windows 8.1?

查看:17
本文介绍了如何移动具有路径名的文件夹/文件>Windows 8.1 中的 255 个字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我环顾四周,发现唯一可能的方法是使用 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆