1. Using windows services to write a .NET service that automatically looks
for new files every x mins via a timer, etc.
2. Using task scheduled to write a .NET exe that is scheduled to run at a
set interval.
This app will monitor a directory for new files and when found insert them
into a DB then delete them from the directory. I think either approach will
accomplish the task, just looking for opinions and/or other suggestions to
approach this simple task.
Thanks
> I have a requirement to monitor a folder for new files.
OK.
> I think either approach will accomplish the task,
More than likely...
> just looking for opinions and/or other suggestions to approach this simple
> task.
Everything you need is already built into the .NET Framework:
http://www.google.co.uk/search?sourceid=navclient&hl=en-GB&ie=UTF-8&rlz=1T4GPTB_en-GBGB298GB298&q=%22C%23%22+FileSystemWatcher
--
Mark Rae
ASP.NET MVP
http://www.markrae.net