Watching the file arrival
I picked up a question in the ITKE forums about a script to watch the file system
The event handler function accepts the event as a parameter and writes out that a file has been received. You can put anything in here eg a mail message could be sent.
The folder and filter (all files) are set and we define the FileSystemWatcher object which we set to include subdirectories
The action is defined and the event is registered.
dot source the script when you run it