Link to home
Start Free TrialLog in
Avatar of PhilZ
PhilZ

asked on

Monitoring a directory (NT 4) for new files

I use Delphi 4. Iam writing an application that needs to monitor a directory for new files (or directories) that are created in it.
What is the easiest way of doing this?
ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

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
Avatar of inthe
inthe

ps if its easier i'll email you the project files.
For NT I recommend using ReadDirectoryChangesW instead of the FindFirstFileNotification stuff, because ReadDirectoryChangesW tells you WHAT has changed, FindFirstFileNotification does not...
But ReadDirectoryChangesW is only available under NT.

Regards, Madshi.
and i should've read the question title better(its too small now)i missed the nt bit.