Greg,
You need to go deeper than the API for this. You need to write a system
level driver which will handle this, and you can't really do it in .NET (you
could write an unmanaged stub which will call managed code, but you can't
create the dll using managed code. Also, I don't know that system level
code should be managed, necessarily).
If you want to just trigger an action when something happens, the
FileSystemWatcher is what you want. However, it won't let you change the
action, which I think is what you are after.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Greg" <gr*************@yahoo.co.uk> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Is there an easy way to design a service that "listens" for attempts to
add files to a specified directory, and on detecting an attempt
starting another exe? I've no idea how feasible it is without getting
too deep into the WinAPI.