hi guys,
well, what i'm trying to do is to develop an application that will
monitorize the time spent unsing a file. To do so I need to know when a
file is opened and closed.
I already tried millions of ways to achieve that but unfortunetly none
of them have worked. I already concluded that notepad doesn't lock the
file in use (like word, excel, etc...) 'cause, one of the ways I've
tried was try to open a file in use by one of this applications in
exclusive mode from x to x seconds, and every time that action fails is
because the file is in use.
Patrice,
how can I know when an instance of notepad has terminated? I don't know
to do that.
The ideal plan is to create some kind of event-mechanism that fires an
event each time the SO open or closes as application or file...how can
I know this?
Regards,
Filipe Marcelino