• Eheran@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    11 hours ago

    You can enable long names in Windows, essentially removing that restriction and giving you the power of all the sub folders up to something like 26’000 characters.

    1. Open the Registry Editor.
    2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
    3. Find the LongPathsEnabled DWORD value, double-click it, and set its value to 1
    4. Restart your computer
    5. Be free and happy
      • dan@upvote.au
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        10 hours ago

        A lot of apps still use legacy Windows APIs that don’t understand very long paths. Those APIs have been deprecated for maybe 15 years or more, but developers are lazy. Microsoft can’t add support for long paths to the old APIs because they use a fixed buffer size (which means that only a certain amount of memory space is available for the path, and increasing it would break the apps that rely on that). They can’t totally remove the old APIs because every app that uses them would break.

        • bleistift2@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          2
          ·
          10 hours ago

          They can’t totally remove the old APIs because every app that uses them would break.

          For every other company I would buy that argument. But for one that forces customers to throw away millions of computers which can’t run Win 11… no.