Setting the watchfolder to point at a specific folder, then copying files
into that folder; the only event that fires is OnFileChange, and when I look
at the shellItem property, it contains my *folder*, and not the new file.
Any advice? I need to know specifically when new files "appear" in my
watched folder.
TIA,
Ralph S.
I'm actually surprized you get OnFileChange; AFAIK, adding a
group of files will only fire OnFolderChange. What event are you
expecting?
Stephen Posey [TurboPower Software]
--
Please respond to the newsgroups and not via email.
This way, everyone benefits from knowing what was said.
Replies to mails...@turbopower.com will be copied back
to the newsgroup.
What action *does* cause "onFileCreate" to be invoked? Is there any point
to having options for a dozen different triggers, if the only one that ever
gets called is "onFolderChange"?
Thanks,
Ralph S.
"Stephen Posey [TurboPower Software]" <step...@turbopower.com> wrote in
message news:3DF7817F...@turbopower.com...
That's one of the dirty little secrets of Shell notifications.
File creation (and a few of the other file specific
notifications) is generally only triggered if the application
operating on the file explicitly notifies the Shell that it's
done so (via the SHChangeNotify API).
Few applications bother to do this, including some that you'd
think would know better (e.g. Microsoft Word, and even Notepad).
Barring that you'll generally only get OnFileCreate when a new
file is created using the "New" menu in Explorer.