C# File monitoring

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Q2hyaXMgRmluaw==?=

    C# File monitoring

    I have a requirement to monitor a folder for new files. Just looking for a
    suggestion on which approach you would take on design.

    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

  • Mark Rae [MVP]

    #2
    Re: C# File monitoring

    "Chris Fink" <ChrisFink@disc ussions.microso ft.comwrote in message
    news:44F95E09-EF76-4064-AA1E-3812D40F228D@mi crosoft.com...
    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:



    --
    Mark Rae
    ASP.NET MVP


    Comment

    Working...