Link to home
Start Free TrialLog in
Avatar of zdpl0a
zdpl0a

asked on

Directory Question

Hello Experts:

I can remember back to the Windows 95 days when you were limited to the number of directories that could be created at each level.

Does this rule apply to Windows 2000?  and if so, what is the limit per level?
Avatar of tarun209
tarun209

probaly no limits
Windows does not have a restriction on how many folders/directories you create at each level, nor how many levels deep you go... however, WinNT has had situations arise where a file could not be opened because the path name was too long (too many sub-folders).  I think the max was 255 characters, but not sure.
ASKER CERTIFIED SOLUTION
Avatar of pjknibbs
pjknibbs

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've written batch files to create folders automatically, and I can definitely tell you that the max. number of folders that can reside at one level is 65536 in Windows 2000. A disk full message will appear after that if you try to create new folders or copy new files into that area.

Regards
Avatar of zdpl0a

ASKER

laoisjoe

is there written documentation on this?
laoisjoe, was the disk full after your batch file created 65536 folders?
laoisjoe, welcome to EE! Please be respectful of other experts and please do not propose an answer until you are absolutely sure that this will fix the users problem. I have personally already posted step by step instructions as to the creation of a mirror. Whilst you have proposed an answer you have also locked the question so that no other experts may comment. Please post comments and if the user sees that it will fix their problems then they can accept it as an answer.
Not only did he lock the question, he locked it with the WRONG ANSWER. I just ran this simple batch file in the TEMP directory on my Windows XP machine:

for %%i in (1 1 66000) DO mkdir %%i

and it quite happily went away and created 66000 subfolders. Of course, this is on a machine using the NTFS file system, so your mileage may vary if you're using FAT32--but that just goes back to the point I made earlier that folder limits are a file system issue, not an operating system issue.

In fact, a thought has just occurred to me--if the partition on which laoisjoe ran his test was formatted using the FAT16 file system (although why this would be so I wouldn't like to guess) then he would be limited to slightly less than 64K files in total on the drive, due to cluster size limitations. This might be the limit he ran into, not a hard-coded directory limit.
zdpl0a, can you please unlock this question and I think either EricWestbo or pjknibbs may be able to answer your question for you.

Thanks
Avatar of zdpl0a

ASKER

sorry for the long delay...been out of town
Avatar of zdpl0a

ASKER

Thanks for all of your help .. i have verified this with an online source.