Page History
...
- The implemenation makes use of the
- .Net FileSystemWatcher class
- PowerShell Register-ObjectEvent cmdlet
- Lines 7 - 11: creates the FileSystemWatcher object
- Lines 14 - 33: holds hold the script block to move files in case of events indicating creation of a file.
- Lines 1 36 -138: holds hold the script block to log events in case of events not related to creation of a file.
- Lines 41 - 44: subscribe to the related events and assign the respective script block
Overview
Content Tools