|
-
Nov 17th, 2011, 06:25 PM
#1
Thread Starter
New Member
[RESOLVED] Email when files in multiple folders exist aged 15min or older
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 mintues if any FILES exist in these directories (along with 50 more).
- It should ignore folders.
- If No, quit.
- If yes, email [email protected] 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: [email protected]
To: [email protected]
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\FromCustomer\
C:\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 was hoping to use VB, but i am limited in my education on it - i can read and understand what it does, i can't quite write it yet. Thoughts, help?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|