Does Robocopy copy files that have more then 256 characters in the file path or file name.<\/p>\n
I am seeing some conflicted info on this online and wondering if it does.<\/p>\n
I can copy the file to the same location on another drive so from E:\\FILEPATH to F:\\FILEPATH but then the file becomes un-usable (I get a error from windows explorer telling me the path or filename too long). How do I fix something like this AFTER the copy.<\/p>\n
If not, what can we do to get around this problem where we robocopy directory/files where some of it too long without renaming/removing it.<\/p>\n
We are doing this all through using a robocopy .bat script at the moment.<\/p>","upvoteCount":5,"answerCount":5,"datePublished":"2018-04-06T12:49:58.000Z","author":{"@type":"Person","name":"fabianm","url":"https://community.spiceworks.com/u/fabianm"},"suggestedAnswer":[{"@type":"Answer","text":"
Does Robocopy copy files that have more then 256 characters in the file path or file name.<\/p>\n
I am seeing some conflicted info on this online and wondering if it does.<\/p>\n
I can copy the file to the same location on another drive so from E:\\FILEPATH to F:\\FILEPATH but then the file becomes un-usable (I get a error from windows explorer telling me the path or filename too long). How do I fix something like this AFTER the copy.<\/p>\n
If not, what can we do to get around this problem where we robocopy directory/files where some of it too long without renaming/removing it.<\/p>\n
We are doing this all through using a robocopy .bat script at the moment.<\/p>","upvoteCount":5,"datePublished":"2018-04-06T12:49:58.000Z","url":"https://community.spiceworks.com/t/robocopying-256-character-limit/644776/1","author":{"@type":"Person","name":"fabianm","url":"https://community.spiceworks.com/u/fabianm"}},{"@type":"Answer","text":"
If you’re on earlier versions of Windows, you have a 260 character (including termination character) limit for the path\\filename specification.<\/p>\n
On Windows 10, a registry change can allow long path\\filename usage.<\/p>\n
Compatibility becomes an issue. Unfortunately, you can create this situation by creating subfolders manually, but getting out of it requires shortening the path and or filenames manually as well.<\/p>\n
Been there. Not fun.<\/p>","upvoteCount":3,"datePublished":"2018-04-06T13:42:51.000Z","url":"https://community.spiceworks.com/t/robocopying-256-character-limit/644776/2","author":{"@type":"Person","name":"stevesachs","url":"https://community.spiceworks.com/u/stevesachs"}},{"@type":"Answer","text":"
Robocopy supports long file names by default. If you wanted to turn that off, you could use the /256 switch to limit characters.<\/p>\n