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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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:
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

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
dbruntonQuid, 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:


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)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial

-> this only applies to applications that care. Windows explorer does not care.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.