Link to home
Start Free TrialLog in
Avatar of jpreis
jpreis

asked on

monitor if a specific file is accessed

Hi
I'm trying to make a program detect when a specific file is accessed (i was thinking of monitoring changes in the lastaccessed attributes) and whenever that happens it should run another program (like a prog.bat) . I'm programming with visual c++ 6.0. Any sugestions? thanks
ASKER CERTIFIED SOLUTION
Avatar of Axter
Axter
Flag of United States of America image

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
here's a wrapper class along with some sample code: http://www.codeproject.com/file/directorychangewatcher.asp
Avatar of jpreis
jpreis

ASKER

Axter,

thank you for that answer. i completly forgot about this question because i managed to get around that problem. i'm rewarding you for the atention though.

thanks