troubleshooting Question

Cannot move files due to path length limit

Avatar of Russ Dillion
Russ DillionFlag for United States of America asked on
StorageWindows Server 2008
9 Comments2 Solutions3131 ViewsLast Modified:
Hello Experts,

I am in the process of moving the home directories for some users from one volume to another on the same server.  While moving one home directory earlier today, I ran into an issue where a number of files could not be moved due to the path length limit.  The directory path lengths on the two volumes are exactly the same (ie: D:\Home\jdoe\personal\data\plans\ and E:\Home\jdoe\personal\data\plans\).  When looking at the full path length for any of the given files, it does in fact exceed the 256 character limit.  I have two questions.  First, how could the files have been created in the original volume in the first place, if the path length is too long?  Second, what can I do to move these files to the same location in the new volume?  

All of the files are .pdf files.  When searching for information, I read one post indicating that the native application of the file might have an implact on this.  After reading that, I copied some of the files to a temporary location with a shorter path, opened one of them in Acrobat Reader, and then attempted to save it in the new location.  However, this approach failed.  I have also attempted to use robocopy to copy the files to the new location, but that fails as well.  The server is Windows 2008 Standard SP2.  

Again, I am befuddled as to how the files could have been put in the original location in the first place, given their excessive path lengths.  Any \ all ideas are greatly appreciated.



Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros