I need a utility developed that will do the following;
1. Monitor a specified folder for incoming files (May need to look in a UNC path or local directory with spaces)
1a. Should have heartbeat written to log every 30 minutes confirming monitoring is working
2. If there have been no new files in this folder for a specified amount of time, perform the following maintenance;
2a. Look for a specific process name and close it. Try gracefully, if it doesn't close, kill it
2b. Write and entry in a log file saying that no files had been detected and maintenance was run. include date/time stamp
2c. Launch a specific exe. (Same exe as the process in 2a)
2d. Send an alert email out to a specified email address notifying of the issue
3. We need to be able to setup schedules which determines when maintenance needs to run. For example;
3a Day, time period (i.e.: between 0700-1700), new file time limit (i.e.: no new files in last X minutes, trigger maintenance)
3b Should be able to create as many schedules as we need
This might be able to be done through PowerShell but this will run on a Windows 2003 R2 server and would prefer this be done as a VB terminal app but I am open to suggestions.
This needs to be done ASAP so unless you can start immediately upon award and complete this within a day or two, please don't bid.