From: Peter Haas Newsgroups: borland.public.delphi.winapi Subject: Re: How to find out how much space in MB is in one directory? Date: Sat, 17 Feb 2001 07:13:58 +0100 ... Path: bornews.borland.com!dnews!62.155.201.162 Hi Nick, Nick Tentomas wrote in <3A8D7DD6.D7F4BF3C@CSBFACMGT.CSBFM.DAL.CA>: > I need to be able to find out how much spcae is used by a directory and > its subdirectories. Has anybody done this with Delphi 5? There are two different values, the sum of all file sizes and the allocated disk size. You can calculate this values with FindFirst, FindNext, ... To calculate the second value, you must the file sizes align on cluster size. The determination of cluster size is difficult for a FAT32 Partition. I have write a demo program to calculate both values for a path inclusive determination of cluster size for all disk types. I have test the program with FAT16, FAT32, NTFS, CDFS under Win98SE and Win2k. Download (6 kByte): http://home.t-online.de/home/PeterJHaas/Download/DiskIOWin9x.zip By Peter.