If you are not finding a way to deal with the error, ‘Destination Path too long’, then a few tricks can help you resolve the issue. The prime reason could probably be due to the File Explorer which fails to rename or copy the file that has a path name as long as 256 characters. But, once you start using the API functions, you can use a path up to 32767 characters. In fact, it’s actually possible when you use file managers like Total Commander and FAR.
Check also: How To Fix DNS Server is Not Responding Error?
How to Fix Destination Path Too Long Error?
Usually, you can follow the ways mentioned below when you see a dialog box as per the image below.
But in case you have a computer running on Windows 8, then the error would appear differently.
Solution #1 – Rename the Folder Once Again
If the problem is owing to the name of the file, then try changing the name with something short. Having said that, you should know the rules for naming the file. However, the trick won’t work, if the root folder is packed with more than 256 folders.
Solution #2 – Create a Link
Yet another effective way could be to create a symbolic link that refers to the path. You can carry out the task with just one command.
mklink /d c:\home\link “C:\verylongpathhere……”
Later, you shouldn’t forget to perform operations with the respective directory. In this case, we have considered the directory as C:\home\link.
Solution #3 – Use the Utility, ‘Subst’
If the problem occurs with a folder stored on a virtual drive, then the ‘Subst’ utility would turn out to be useful. This would aid to shorten the path length as shown below.
Subst Z: “C:\verylongpathhere……”
Later, you can work with the data stored on the drive that’s Z in this case. After you are done, you can delete the drive without thinking twice.
Subst Z: /d
Solution #4 – Hiding the Shared Path
This could actually be the quickest trick ever thought about. Here’s what you need to follow.
Step 1: If you need to transfer many folders, then you should map the drive with the relevant folder. You just need to copy the path and paste on the notepad.
Step 2: Go to ‘My Computer’ and click on Map Network Drive. This option may not be visible but you can easily search the icon depending on the operating system.
Step 3: As the window pops up, you need to copy the path and paste in the field named ‘Folder’.
Finally, you would be delighted in copying the files to the desired location.
Solution #5 – Enabling the Long Path Support for Windows 10
Step 1: Run ‘regedit’ and go to the folder, ‘FileSystem’ present in the left pane.
Step 2: Once the folder opens, right click on the option ‘LongPathsEnabled’ and move on with the ‘Modify’ option.
Step 3: Alternatively, you can also go to group policy editor (Win + R \ gpedit.msc) under Computer ‘Configuration-> Administrative Templates->System-> Filesystem’. Later, you then have to enable the policy through the ‘Enable NTFS long paths’.
For reflecting the changes, you need to reboot the operating system. After restarting the computer, you don’t have to bother about the length of the filename.
Hope these ways are effective is coming up with a solution. Share this blog on social circles for reference in case friends are stuck with the same issue.