Destination Path Too Long in Windows 10 Pro 64-bit

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.
Brett LarsonAsked:
Who is Participating?
Use the subst command at the command line to shorten your path.

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


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)
ITSysTechSenior Systems AdministratorCommented:
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?


Edit: How deep are your files i.e. c:\folder\folder\folder\folder\folder\folder\folder\ ?
JohnBusiness Consultant (Owner)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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

RaminTechnical AdvisorCommented:
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:
JohnBusiness Consultant (Owner)Commented:
For long term stability it is better to work within the rules. Windows 10 new builds obliterate bad practices of past

-> this only applies to applications that care. Windows explorer does not care.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.