Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7166041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:20:57+00:00 2026-05-28T14:20:57+00:00

I am going to be creating an application which will monitor a folder, which

  • 0

I am going to be creating an application which will monitor a folder, which could be a network folder and when new files are added in that folder it will notify the application. On notification application will import those files names into a listbox and will give the option to user to organize(move) those files into a different directory.

Two main things here,
1. I have to implement a logic for monitoring the new files in the folder.
2. I have to move it into new directory and in some cases I will have to create those new directories as user specify.

For the first step I am confused to either implement it as a windows service using FileSystemWatcher class, example can be seen here.
http://www.codeproject.com/Articles/32591/Creating-a-Windows-Service-for-Watching-System-Dir

or do a file check based on timer, lets say every 5 minutes.

If I do it as a service how can the service notify application?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:20:58+00:00Added an answer on May 28, 2026 at 2:20 pm

    I would integrate this into the application – you might run into problems (permission-wise) watching a network folder from a windows service.

    Some references and sample code:

    • http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx
    • http://www.switchonthecode.com/tutorials/csharp-snippet-tutorial-using-the-filesystemwatcher-class
    • FileSystemWatcher vs polling to watch for file changes

    To avoid some pitfalls (watching files on a network folder might be sometimes unreliable) poll the folder additionally for example every 10 minutes…

    IF you really want to do it as a Windows Service you can use any form of IPC to notify the application – TCP or UDP or “shared memory” or Pipes or whatever…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an application that will use a lot of data which is, for
Hello I am creating a Windows application (WPF) that is going to be running
I am creating an Android application which will have some embedded music inside of
I am creating a ASP.NET application that is pretty much self contained, it will
In my application, I will be creating multiple Audio Tracks, some of which will
I am writing an installer class in which I am creating a new Application
I am creating a wpf application where it is going to be installed on
I'm creating a reporting application, and our customers are going to need to generate
I'm creating a cache which is going to contain records in Delphi 2007. Each
I'm currently developing a C# application which will record registry changes, save them to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.