catching file changes
-
Fellow cpians , how can I hook to a file to catch that the file changed ? I'm must code a application that is always monitoring a file on the filesystem and every time that the file is updated , I need to be notified of the fact to reload the file data in my COM Server. Some Windows message , DDE event , hooking mechanism (In a long distant past I already have done something like this, but it's part of my forgotten memories)??? Thanks in advance. Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech
-
Fellow cpians , how can I hook to a file to catch that the file changed ? I'm must code a application that is always monitoring a file on the filesystem and every time that the file is updated , I need to be notified of the fact to reload the file data in my COM Server. Some Windows message , DDE event , hooking mechanism (In a long distant past I already have done something like this, but it's part of my forgotten memories)??? Thanks in advance. Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech
-
The 2 functions don't work only on a single file , but making a directory with only 1 file should do the trick. So many thanks for your help :-) Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech