In the dark ages where computers weren't quite pentium quad core spec and they cost an arm and a leg and had less computing power than modern wrist-watches, operating system architects were cutting corners high and low to make do with the limited resources of the early PCs. One that will be our today's subject is the maximum folder path length of 260 characters overall (MAX_PATH constant). This filename limit is still present in the third millenium AD despite microsoft's claims to the contrary — to my experience the \\?\D:\ path prefix is not working.
When this 260 character limit was introduced folder names were only 8 characters long and file names (up to) 12 characters — 8 for base name and 3 for extension, hence 8.3 format like 12345678.TXT. With such short names, you could have hierarchies 27 levels deep and still fall within the MAX_PATH constraint. Nowadays there are no such 8.3 length restrictions for file or folder names. Users can use long names and many of you take advantage of this filesystem feature to give your folders descriptive names as a reminder of the content e.g. "new york trip on christmas 2008 with harry enfield and chums".
If you are the type that likes naming folders in this fashion you will soon realize that the 260 character limit will come to haunt you. This concerns the overall path length so a few long folder names will add up and you'll hit the limit in hierarchies just 3-4 levels deep. In such situations you will find that there's not much you can do with file management; you can't create deeper files or folders. I have heard of pranks and viruses that create such deep paths which cannot be easily removed since they exceed the maximum path limit. Your file manager gives up and just gives error messages like:
Here's what you can do if you find yourself in this situation:
For more information on this extreme condition see today's demo video
Keep in mind that if you use long descriptive names for your folders you will get in trouble sooner or later. Here are some possible workarounds:
|© 2002—2009 Nikos Bozinis, all rights reserved