Share via

File name too long for destination folder

Anonymous
2022-10-22T06:21:13+00:00

I have a parent folder containing multiple subfolders (100+) within. Every folder name is well under 256 characters. I need to transfer this particular parent folder regularly between my computer drives and have had no issue initially.

However out of the blue I start receiving error messages that my parent folder and all 100+ subfolders have names too long for the destination folder despite me having been transferring them all day without issue prior.

I have tried to

  1. shorten the name of the parent folder (shortening all 100+ folders is too much work)
  2. set LongPathsEnabled to 1 under the Registry
  3. Enable Win32 long paths option under Local Computer Policy as seen from https://learn.microsoft.com/en-us/answers/questions/730467/long-paths-not-working-in-windows-2019.html
  4. I restarted my PC after every attempt.

None of these "solutions" worked. Is someone able to tell me what is going on and how to solve this issue? I need to be able to transfer folders between drives for my work. Why didnt the solutions work? They were meant to specifically enable file names to be longer right?

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2022-10-23T06:39:27+00:00

    Hi Derrick,

    Thank you for your reply. I dont quite understand your paragraph "The common understanding is: if your file name is 123456789012345678901234567890, the folder name of each layer is D:\ABCDEFGHIJKLMNOPQRSTUVWXYZ\ABCDEFGHIJKLMNOPQRSTUVW\ABCDEFGHIJKLMNOPQRS\ ...... If these characters add up to 280 and the Windows system limit is 256 characters, an error message will appear "The file name may be too long for the destination folder. You can shorten the file name and try again, or try a shorter path"." I am not sure how the file named "12345....." can read as "ABCDE..." as I am no techie.

    May I clarify that point by trying to explain what I got from your answer in my own words? If my parent folder is named "Bobbys growing up" and the subfolders within, each containing jpeg files are named "1st birthday", "2nd birthday".....

    Then the folder name of each layer will be D:\Bobbys growing up\1st birthday ( each of these is called a path)

                                                                    D:\ Bobbys growing up\2nd birthday 
    

    So the longer the parent folder name the shorter the subfolder names can be. Am I correct in that regard?

    10+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2022-10-23T02:11:18+00:00

    Hi

    Welcome to Microsoft community.

    I'm glad to help you.

    The fundamental reason is that the number of characters of your file name and your folder layers exceeds the limit of Windows system.

    The common understanding is: if your file name is 123456789012345678901234567890, the folder name of each layer is D:\ABCDEFGHIJKLMNOPQRSTUVWXYZ\ABCDEFGHIJKLMNOPQRSTUVW\ABCDEFGHIJKLMNOPQRS\ ...... If these characters add up to 280 and the Windows system limit is 256 characters, an error message will appear "The file name may be too long for the destination folder. You can shorten the file name and try again, or try a shorter path".

    The solution is to change the file name, or change the path. Change the first level path name of each folder to a shorter character.

    Or you can make a zip file of the files you need to transfer.

    If you need more help, please don't hesitate to let me know.

    Best regards

    Derrick Qian | Microsoft Community Support Specialist

    10+ people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2022-10-26T01:56:49+00:00

    Hi

    Thanks for your reply.

    If the number of characters in the names of all files and subfolders in a folder exceeds 256, a move error will occur.

    If you modify the group policy and registry, it has no effect. You can only solve this problem by shortening the file name and subfolder name, or even the length of the parent folder name.

    Another way is to compress the files you need to transfer into compressed files, which should also be copied and moved.

    7 people found this answer helpful.
    0 comments No comments