Hi Dave,

I would have thought you could have polled every second or some similar
interval without hitting the CPU very hard?

It obviously depends on what your definition of "instant" is, how much of a
small lag is acceptable, and how busy your server is doing other stuff.

I've done something to detect when my computer made a dial-up connection to
the Internet.

HTH,

Conor

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]

Thanks Ben, but not sure I'm fully understanding. My purpose is to listen
for email text files created by a legacy system in a directory. As soon as
one appears, I want the Delphi exe to read in the file, create a new email
in Outlook and send it out. Both the email directory and the Delphi exe,
will be on servers, though not the same server. For the Delphi exe, I will
arrange for it to be run on bootup.

I've found numerous freeware components, even one for Delphi 6, which use
FindCloseChangeNotification and will do the job for me. Because this is
email, I don't want to only poll e.g. every 5 minutes. I'd like instant
response so one of these downloadable components seems a good idea. But if
you could explain the downside some more, it would help.
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to