|I have a list of directories that get files added to by other users on my network.|
I would like a script (triggered by scheduled task) that would detect if there are files in these folders older than 15 minutes, and send me an email.
I am able to run Batch/DOS, Python, Perl, or VBS - I have them all installed on the server. As long as they can be triggered from Scheduled task.
C:\UsersFTP\JoeS\FromCustomer\ <files dropped here>
C:\UsersFTP\Mark\FromCustomer\ <files dropped here>
C:\UsersFTP\Robbie\FromCustomer\ <files dropped here>
C:\UsersFTP\Tammy\FromCustomer\ <files dropped here>
- Check every 15 mintues if any FILES exist in these directories (along with 50 more).
- It should ignore folders.
- If No, quit.
- If yes, email firstname.lastname@example.org and notify that files are waiting to be reviewed.
- The scheduled task can run it every 15 minutes.
- I would like it to only send ONE email, no matter how many files are waiting.
Example notification: (the XX are variables)
= = = = =
Subject: Files in FromCustomer are waiting
You Have files that are waiting since xx:xx:xx PM (over XX minutes).
The files are located in:
Please process or remove them. Thank you.
= = = = =
I have been looking at doing this in Batch, but I just don't think it is capable... thoughts, help?