In fact, the path line limit is 260 characters. Currently, the base OS can support much longer path names, up to 32,767 characters . To name a path with a long name, you need to use the magic \\?\ Prefix and use the Unicode API version.
However, many tools do not support such long names. A classic example of such a tool is Explorer, which will not allow you to create objects with names longer than 260 characters. Because of this, I highly recommend that you avoid creating such long names, so this will save you a lot of heartache in the long run.
source share