1
Reply

Keep track of files being copied, moved, or deleted.

NeCroFire

NeCroFire

Nov 18 2010 5:21 AM
4k
Hi

I need to create an app that will log any files being copied, moved, or deleted in a specified directory. The idea is to try and prevent duplication of a file in different folders and if a user tries to copy a file that is already somewhere in the specified location, the app will let the user know and he/she will then have a choice to either continue or not.

I'm not really sure how to accomplish this. I guess the FileSystemWatcher is an option, but I've had problems with it in the past where it would hold onto a file and prevent any change to said file. Another way I thought might work is to monitor the Clipboard, but what if you paste the file from your PC to another? How would the "receiving" PC know to check for duplication?

So the only thing I can think of is somehow catching windows events?? Maybe that's a stupid idea??

Maybe there is already something like this out there? If so, then my Googling skills suck.

Any advice would be appreciated.
Thanks

Answers (1)