David said:
They couldn't all be in the root as there was a limit of 64 files in
the root.
Depends on the storage media which was never mentioned. For example, a
360KB 5.25" floppy has 7 sectors allocated to the FAT, sectors are 512
bytes in size, and each entry (file or directory) consumes 32 bytes in
the FAT, so that floppy can hold 112 entries:
7 sectors * 512 bytes/sector / 32 bytes/entry = 112 entries
Summary of maximum entry count for MS/PC-DOS (root folder only):
8" 250 KB floppy: 68
8" 500 KB floppy: 68
8" 1.2 MB floppy: 192
5.25" 180 KB floppy: 64
5.25" 360 KB floppy: 112
5.25" 1.2 MB floppy: 224
3.5" 720 KB floppy: 112
3.5" 1.44 MB floppy: 224
3.5" 2.88 MB floppy: 240
3.5" 1.68 MB DMF floppy: 16 (*)
Hard disks FAT12/16/32: 512
(*) Microsoft apps were often distributed using these hence the need to
invent CAB files to deliver a larger number of files.
Not all media formats are listed above. Many more are listed at
http://en.wikipedia.org/wiki/Floppy_disk but I wasn't going to waste
time to check what were they max entry count in the root folder. For an
alternate listing of "Root dir entries" on media size, read
http://support.microsoft.com/kb/75131.
If long filenames are supported then the max count goes down due to use
of more bytes per entry in the FAT to store the alternate long name.
MS-DOS 2.0 introduced directories that could hold a lot more files and
[sub]directories: 4068 for FAT12, 64K for FAT16, 268,173,300 for FAT32
(using the default cluster sizes). That didn't alleviate the maximum
entry count in the root folder.
Are we having fun yet roaming down reminiscence lane?