1

Windows 10 is killing me. I want to write some file names with more than 80 characters. I have a folder path like that: C:\Users\MyUser\Documents\Formations\Maitriser les outils vectoriels d Illustrator et de Photoshop\Illustrator CC - L art des courbes vectorielles\02 - Demarrer cette formation sur Illustrator CC. When I create a file into that folder and start typing the file name Windows only let me type only 50 characters. For example: Nouveau document texte jhkds fjkdshfkj sfhjsdh.txt. When I get into C:\Users\MyUser\Documents\Formations\Maitriser les outils vectoriels d Illustrator et de Photoshop\Illustrator CC - L art des courbes vectorielles it let me write at maximum 99 characters like Nouveau document texte khfjddjg djfhjdshf jdshf sdfsjdfjsd fds fsd fjsdfjdsjfhsdjfh djsfhjsdhfj.txt. When I get into C:\Users\MyUser\Documents\Formations\Maitriser les outils vectoriels d Illustrator et de Photoshop it allows me to write a file name with maximum 147 characters like Nouveau document texte djkshfkjs djfk hfjdshjf jshfjhsd fjshfjs dhfjhs djfhsjdhf jsdhfjhsdj fhds fhsdj fjdshfj hsdjhf sdhfjh sdjhf shdjf sjdhf .txt. each time I get closer to c:\ it increases the filename maximum length.

I even create a Python script to try to create a filename longer than the maximum allowed by Windows, Python throws an exception like File or directory not found (something like that).

I have LongPathsEnabled set to 1 in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem.

My Hard drive is GPT and NTFS, it has 2 NTFS partitions.

What is wrong with Windows? How to fix it?

5
  • 2
    Your file path contains more than 260 characters. It also might be the script.. If it’s the script that would be a question for Stack Overflow not Super User. Looks like long path support in Python is tricky.
    – Ramhound
    Aug 30, 2019 at 1:44
  • @Ramhound It's not about script but About the Windows OS. I just mentioned Python to make understand that Windows does not allow Long file name even if I enabled Long paths support. Aug 30, 2019 at 2:56
  • 1
    Take a look at this answer. It indicates that even if the LongPathsEnable entry is in place, Windows Explorer is still limited. And as Ramhound points out, Python is also tricky. Just because it is enabled in the registry, it doesn't mean that every application can handle long paths. Try a third-party file management tool.
    – Doug Deden
    Aug 30, 2019 at 3:54
  • @user3502626 - Then you are out of luck. You need to have a path with less than 260 characters.
    – Ramhound
    Aug 30, 2019 at 3:55
  • 1
    The key LongPathsEnabled only works when the application includes the longPathAware element in its manifest. It's not a global flag. And Explorer still doesn't have good long file name support so you'll have to work with command line
    – phuclv
    Aug 30, 2019 at 5:03

1 Answer 1

1

Windows Explorer does not support long paths and does not correctly handle the LongPathsEnabled registry entry.

You may file a bug report with Microsoft using the Feedback Hub, but I assume that many others have already done that before you, but with no effect.

Your only options as I see them are:

  • Shorten the folder name using the subst command to give a phony drive-letter to part of the path. For example:

    subst z: "C:\Users\MyUser\Documents\Formations\Maitriser les outils vectoriels d Illustrator et de Photoshop\Illustrator CC - L art des courbes vectorielles"
    
  • Use a third-party file-manager, other than Explorer. For a large choice, see the article:
    Best Free File Manager.
    I also add here Altap Salamander 4.0 Freeware.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .