Windows – limit to the number of files I can place in a given folder

filesystemsntfswindowswindows-server-2003

How many files can a folder contain? I have 30k folders inside 1 folder. Each of the folders has 1 image file. Is there a limit on the number of files a folder can store?

I am using Windows Server 2003, IIS6.

Best Answer

Note: Assuming NTFS, as no one in their right mind would use FAT for anything else than USB thumb drives or memory cards, let alone on a server (ok, that thought is scary).

Yes, there is a limit. Storing more files than particles in the universe may prove impractical. However, the actual limit is far lower.

NTFS has a maximum of 4,294,967,295 (232 − 1) files per volume. A few of those are already used by the file system itself and folder should count as files too.

30,000 aren't that many files, actually. But Microsoft recommends that you turn off auto-generation of DOS-compatible short names if you move past 300,000 as finding a unique short name gets difficult then.

Related Question