Destination Path Too Long in Windows 10 Pro 64-bit

Brett Larson
Brett Larson used Ask the Experts™
on
I notice when I copy certain files and folders to and from different hard drives I get a "Destination Path Too Long" message and it asks me if I want to cancel or skip. How can I prevent this from happening in the future? Any fixes? I don't remember having this issue in Windows 7 Pro 64-bit.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ITSysTechSenior Systems Administrator
Commented:
Windows has a limitation of 260 characters for the path length so my guess is that the path limitation doesn't come into play during creation of deep nested sub-folders but does become relevant when attempting to copy/paste. Did you actually do a copy/paste or did you try selecting the folder in Windows Explorer and dragging it over to the external drive?

Reference

Edit: How deep are your files i.e. c:\folder\folder\folder\folder\folder\folder\folder\ ?
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
Commented:
The systems are the same for oath length from Windows 7 forward. You need to shorten your paths or face no end of problems
RaminTechnical Advisor
Commented:
You can use Robocopy command to copy your data on that location.
Also in future don't use very long name for directories or files.

You can also bypass that by modifying Registry:
https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
Commented:
For long term stability it is better to work within the rules. Windows 10 new builds obliterate bad practices of past
Quid, Me Anxius Sum?  Illegitimi non carborundum.
Commented:
Use the subst command at the command line to shorten your path.

I'll assume you have a destination folder like this:

h:\folder1\folder2\folder3\folder4\folder5

At the command line do

subst  z:  "c:\folder1\folder2\folder3\folder4\folder5"

Go back to Windows Explorer and do your copying to z:

Once done go back to the command line and do

subst  z:  /d  (This will remove your substituted drive)
Distinguished Expert 2018
Commented:
About https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/

-> this only applies to applications that care. Windows explorer does not care.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial