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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
here's a wrapper class along with some sample code: http://www.codeproject.com/file/directorychangewatcher.asp
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
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
For example code, see following link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/vcsmpfwatchsamplereaddirectorychangeswapi.asp
David Maisonave :-}