How can I catch all of file notifications happening all over the hard disk?

  • Thread starter Thread starter AliRezaGoogle
  • Start date Start date
A

AliRezaGoogle

Dear group,
I need to know what is going on in my hard disk. When ever any file is
being copied or is being deleted or is being opened I should be aware
of. Please note that I want to monitor entire part of hard disk not a
particular file or folder. Is there any solution?
 
Have you looked at the FileSystemWatcher class? You can set the
IncludeSubDirectories property to true, and set the directory to the root of
your hard drive(s) (in case you have multiple partitions on one drive) and
it should give you the notifications you want.
 
AliRezaGoogle said:
Dear group,
I need to know what is going on in my hard disk. When ever any file is
being copied or is being deleted or is being opened I should be aware
of. Please note that I want to monitor entire part of hard disk not a
particular file or folder. Is there any solution?

theres an aplication called filemon, think its by sysinternals
shows you everything, far to much too look at.

Colin =^.^=
 
Use System.IO.FileSystemWatcher component/class. Be aware, that on a busy
system there are some chances of the internal buffer overflow. MSDN
contains detailed decription and examples.

Lev Elbert
 
Have you looked at the FileSystemWatcher class? You can set the
IncludeSubDirectories property to true, and set the directory to the root of
your hard drive(s) (in case you have multiple partitions on one drive) and
it should give you the notifications you want.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Dear group,
I need to know what is going on in my hard disk. When ever any file is
being copied or is being deleted or is being opened I should be aware
of. Please note that I want to monitor entire part of hard disk not a
particular file or folder. Is there any solution?

Thanks a lot. It works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top