Why is the DOS path length 260 bytes?

Поделиться
HTML-код
  • Опубликовано: 9 май 2024
  • Larry Oosterman takes us waaaaay back in today's #OneDevQuestion - and he explores why the DOS path length was set to 260 bytes.
    If you missed any of the previous history lessons from Larry, you can find the playlist here: msft.it/6058Yn6HO
  • НаукаНаука

Комментарии • 13

  • @SamSmithNZ
    @SamSmithNZ 13 дней назад +6

    More Oosterman stories! What a treat.

  •  13 дней назад +2

    That's a nice format. Talking about historical facts like these. Btw, it would be nice if you fixed the limitation in Windows Explorer for systems like NTFS.

  • @randomjimmystuff9862
    @randomjimmystuff9862 13 дней назад +1

    Love this!!

  • @petropzqi
    @petropzqi 13 дней назад +1

    Just run onto this problem, even though I have all my solutions at c/development.

  • @JorgeEscobarMX
    @JorgeEscobarMX 13 дней назад +4

    WAIT WHAT!!! The video just ended like that! I thought he was going to say that they actually fixed it.

    • @Putersdcat
      @Putersdcat 13 дней назад +1

      The background is that Microsoft strives for backwards compatibility in its operating systems from 40 years ago until today. Not saying you can execute native 16bit apps on Win11 out of the box, but the pathways are there if you have an MSDN account 🎉

    •  12 дней назад +1

      They did.
      Starting with Windows NT the OS supports 32767 UTF-16 code-points long paths, but you need to use special prefix, otherwise backwards compatibility keeps the limit of 260 characters.
      Starting with Windows 10 version 1607 the application can opt-out of that backward compatibility and use 32K long paths freely.

    • @LarryOsterman
      @LarryOsterman 9 дней назад +1

      As others have mentioned, Windows has the ability to bypass the 260-byte limit. But it's not enough for the operating system to add new functionality.
      The core challenge is getting the ecosystem updated, because it requires special considerations for applications. Even though Windows has had the ability to bypass the 260-byte limit for years (decades?), applications are slow to react.
      A large part of the reason for this is that application developers often target versions of Windows like Windows XP and Windows 2000, and those operating systems don't have many of the nice features that are added in newer versions. And maintaining applications that can work on both old and new operating systems is made easier by just targeting the API surface of the old version of the operating system.
      And the problem is pervasive. There are even many Microsoft applications that don't yet fully support long filenames.

    • @LarryOsterman
      @LarryOsterman 9 дней назад

      Oh, and to be fair, I was just thinking about answering the question as asked, and not including a forward looking addendum - that was an oversight on my part, I should have included it.

  • @RoboticEmotion
    @RoboticEmotion 12 дней назад +1

    Cool story. So, let's fix it?!

    •  12 дней назад +3

      It's been fixed for 8 years. In the OS that is. If apps still hardcode 260 then that's their problem.

  • @maxmuster7003
    @maxmuster7003 7 дней назад

    In 260 bytes we can put a lot instructions of mashine code.😂 Who need a path?

  • @sonulohani
    @sonulohani 13 дней назад

    Lol and they still have it right now... What a joke