I’m trying to configure a system where my Dropbox folder is constantly monitored and backed up incrementally by Windows backup whenever a change is made to any of the files in the folder (as a more reliable and free alternative to Dropbox’s “packrat” addon). Ideally this can be done if I can invoke the incremental backup to be made whenever there’s a file change event. Looks like Windows doesn’t have an event trigger like that by default (at least from my googling around) and the only solution posted was to write a wrapper class around the FileSystemWatcher.Changed Event in .NET. Some programs do this but they’re really expensive for such a simple function. I was wondering what they mean when they say “write a wrapper around this event”; I know basic programming in C and VB but its fairly rudimentary knowledge. Though I feel I can do it myself if I prod around long enough, pointers on how the process would go about would be very helpful.
What I’m exactly looking for is a program/service which will constantly keep monitoring a folder and whenever any file within that directory is changed or modified, calls an exe or bat file which we can program into whatever we want..
But I must warn you: When the OnCreated event fires, it also fires the OnChangedEvent immediately and you may end up triggering your process more times than it needs to. You need to put some logic to prevent that.