Detect Folder Move in File Server

Started by atoll1, August 31, 2014, 11:19:45 PM

Previous topic - Next topic


I wanted to wirte a script to detect if users are moving folders ( intentionally or accidentally ) from our File server, but not sure where to start.
I am thinking that Winbatch will use a high memory utilization if a script recurses thru all folders /sub-folders in the file server and detect if a folder was
moved. Here's a pseudocode:
- script runs as a service on the file server
- script recurses thru all folders/sub-folders
- if a folder was moved by a user, winbacth detects the folder moved
- writes a log which folder was moved and to which Unc path the folder was moved

-Any ideas or snippets,  this is whirling in my head I don't want to use other tools except winbatch? Thanks


The following link illustrates several techniques for monitoring a single directory.

Not sure how well any of those techniques will scale to monitoring a large number of directors and am not sure if you be able to obtain a destination location of a file move when the moved is to a different file system.

You could always create an inventor of existing files and then periodically check for new or removed files using either the FileItemPath function or the File and Folder Finder (FAF) extender.  The FAF extender is included in the Search extender download.   

The FAF extender or FileItemPath approach might be appropriate for identifying a file move but it would not help identifying the new location of a file targeted by a move operations unless you also monitored all possible move-to locations.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade