How to Read the file copy, update and delete event info using VB.net?

  • Thread starter Thread starter Sagar
  • Start date Start date
S

Sagar

I want to write a program, that reads and logs the windows events that
happened in a particular folder once every minute,

1. A file was created in the folder. which user created ?
2. A file was updated in the folder, which user updated ?
3. A file was deleted from the folder, which user deleted ?

My question is, Is it possible to read the instance and info of the
above said 'windows events' using vb.net ?

thanks,
Anand Sagar
(e-mail address removed)
 
Sagar said:
I want to write a program, that reads and logs the windows events that
happened in a particular folder once every minute,

1. A file was created in the folder. which user created ?
2. A file was updated in the folder, which user updated ?
3. A file was deleted from the folder, which user deleted ?

My question is, Is it possible to read the instance and info of the
above said 'windows events' using vb.net ?

You could use the FileSystemWatcher component to get notified when files are
created, updated, and deleted respectively. However, the underlying API
does not reveal which user performed the change to the file.

Maybe you can find a solution via NTFS Auditing.
 
Back
Top