Re: Track Hard drive Events

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks Bryan, this project looks great.
I just had a quick first look at it (without diving into the code yet) and
it seems to me that it is quite exactly what I was looking for.

I'll just have to adapt the code so that all the the subdirectories are
watched as well (and I need to know when a file is beeing moved from a
folder into another folder, i.e. not only that file.ext was deleted from
dir1 and file.ext was created in dir2, but that the file.ext that has been
created in dir2 was the file.ext that was deleted from dir1, that's a higher
level of information)

Maybe the API you use in your project can already provide this information
...?

Thanks so much again!

Best,
Jérémie



"alpine" <alpine_don'tsendspam@xxxxxxxx> wrote in message
news:qp4q03dj0c04q3r001ahf935jgvjhl4q35@xxxxxxxxxx
You might want to have a look at the Watch Directory example at
http://www.mvps.org/vbvision

HTH,
Bryan
_________________________________________________________
Bryan Stafford "Don't need no more lies"
New Vision Software - Neil Young -
www.mvps.org/vbvision Living With War : The Restless Consumer
alpineDon'tSpam@xxxxxxxx


On Fri, 30 Mar 2007 13:20:50 +0200, "Jérémie Gent"
<jer_kjr@xxxxxxxxxxx> wrote:

Hi there!

I've been looking a bit here and there but couldn't find any explanation
on
how to react to the following windows events:
- deleting a file
- renaming a file
- moving a file
for whatever file is located at least on the local hard drives (would be
better if it also worked for files located on network mapped drives, but
not
a priority for now).

I don't want to avoid the processing of the task, but only to be informed
(file name, path, what action, new name, new path).
So it's not a problem if my program is called after the event has been
processed.

Any hint would be really appreciated!

Jérémie





.



Relevant Pages

  • Re: Track Hard drive Events
    ... FindFirstChangeNotification, ReadDirectoryChangesW and Change Journals ... dir1 and file.ext was created in dir2, but that the file.ext that has been ... how to react to the following windows events: ...
    (microsoft.public.vb.winapi)
  • Re: Track Hard drive Events
    ... created in dir2 was the file.ext that was deleted from dir1, ... Maybe the API you use in your project can already provide this information ... how to react to the following windows events: ... for whatever file is located at least on the local hard drives (would be ...
    (microsoft.public.vb.winapi)
  • [perl-python] a program to delete duplicate files
    ... prints the full paths of all files in dir1 that are duplicate. ... line follows a group of duplicates. ... will do the same as above, except that duplicates within dir1 or dir2 ... in dir2 does not matter) Note, although dir2 doesn't compare files ...
    (comp.lang.perl.misc)
  • [perl-python] a program to delete duplicate files
    ... prints the full paths of all files in dir1 that are duplicate. ... line follows a group of duplicates. ... will do the same as above, except that duplicates within dir1 or dir2 ... in dir2 does not matter) Note, although dir2 doesn't compare files ...
    (comp.lang.python)
  • Re: how to find files not in other directory (effectively)?
    ... dir1 and dir2. ... is a fairly portable way to test if pathname exists. ... If names may contain newlines, it gets a bit trickier - as one also ...
    (comp.unix.shell)