Monitoring Folders


I am looking for some help from the experts...

I want to be able to put a watch on a particular folder and get notified when a file arrives. The notification if it could fire off an email via outlook exchange.

Or when the file arrives it could trigger an bat or vbscript ..

Any help?
Nick CollinsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill BachPresident and Btrieve GuruCommented:
I do something like this by running a batch file that can do "something" every 30 seconds.  Here's an example that calls a VBScript function:
C:\Windows\SysWOW64\cscript CheckForFile.vbs //nologo
rem echo Sleeping for 30 seconds...
timeout /t 30
goto :LoopIt

Then, in your VBScript function, you can check for the existence of a file in the folder (which is a single statement) and decide what to do from there.  For example, you could send an Email or call another function, exactly as needed.  Of course, if you wanted granularity lower than 30 seconds, simply change the timeout command....

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Peter SarabySenior IT ProCommented:
In case you wan to do this in real time and not use a script, check out EventSentry (Light). It can monitor folders and fire off an email when a file is added, removed or changed. You can also trigger a process/script.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.