Hi everyone, before I ask my question, I just want to say that I'm very new to .net programming but very willing to learn. So please...be gentle...
My organization needs to monitor file changes over a network. I wrote a program in VB.NET that works great. If a user either renames or deletes a file, the program will record the activity in a log (text file).
Here is what I want the program to do: If a user deletes a file, I want the program to archive a copy of the file being deleted...if the user makes a mistake and deletes something from the network that shouldn't have been deleted, I can check the log (which will contain the archived name of the file) and restore the file easily. Unfortunately, the nature of the program as written waits for the Delete Event from FileSystemWatcher, meaning that by the time any code is executed, the file has already been deleted, and any opportunity to archive the file has left the building.
Any ideas? Thanks everyone!
My organization needs to monitor file changes over a network. I wrote a program in VB.NET that works great. If a user either renames or deletes a file, the program will record the activity in a log (text file).
Here is what I want the program to do: If a user deletes a file, I want the program to archive a copy of the file being deleted...if the user makes a mistake and deletes something from the network that shouldn't have been deleted, I can check the log (which will contain the archived name of the file) and restore the file easily. Unfortunately, the nature of the program as written waits for the Delete Event from FileSystemWatcher, meaning that by the time any code is executed, the file has already been deleted, and any opportunity to archive the file has left the building.
Any ideas? Thanks everyone!