billiehawkins
Technical User
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.
Example:
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 minutes if any FILES exist in these directories (along with 50 more).
- It should ignore folders.
- If No, quit.
- If yes, email user@emailaddress.com 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)
= = = = =
From: Notifer@youremail.com
To: user@emailaddress.com
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:
C:\UsersFTP\Tammy\FromCustomerC:\UsersFTP\Robbie\FromCustomer
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... I can read and understand VB, but I am not great at writing it... Thoughts, help?
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.
Example:
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 minutes if any FILES exist in these directories (along with 50 more).
- It should ignore folders.
- If No, quit.
- If yes, email user@emailaddress.com 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)
= = = = =
From: Notifer@youremail.com
To: user@emailaddress.com
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:
C:\UsersFTP\Tammy\FromCustomerC:\UsersFTP\Robbie\FromCustomer
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... I can read and understand VB, but I am not great at writing it... Thoughts, help?