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 9204093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:37:31+00:00 2026-06-17T23:37:31+00:00

Possible Duplicate: How can I watch a file system directory to see when files

  • 0

Possible Duplicate:
How can I watch a file system directory to see when files are added to it?

I am creating a console app in c# which one of its functionality is to scan a fix folder path(example c:\FixedFolderA) say every minute and check if a new folders has been created(Example c:\FixedFolderA\NewFolderB).

So several folders will be created under c:\FixedFolderA.

The new folders will have no subdirectories, just files which I will copy to other locations.

I am not sure of the most efficient design to do this and need your help.

I was thinking of this workflow:

  1. Scan c:\FixedFolderA at the start of the program.
  2. Store all the sub directories in a list.
  3. Create a worker process that scans c:\FixedFolderA and check to see if that sub-directory exists in the list. If the directory doesn’t exist perform some action.

My concern is that the umber of sub-directories in c:\FixedFolderA will increase overtime and the program would be traversing all these directories every minute.

Should the routine to check every minute be done with a process?

Can someone please share your ideas with the best design to get me started ?

Thanks .

  • 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-06-17T23:37:33+00:00Added an answer on June 17, 2026 at 11:37 pm

    If you plan to watch a folder for changes, use the FileSystemWatcher class.

    Also, if this console application performs a specific task on its own, perhaps it is best to turn it into a Windows Service.

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

Sidebar

Related Questions

Possible Duplicate: Can The Android drawable directory contain subdirectories? How to organize graphics/java/xml file
Possible Duplicate: How do I watch a file for changes using Python? How can
Possible Duplicate: Can any one help me, to create .apk file for google android
Possible Duplicate: Can I use a SetTimer() API in a console c++ app I
Possible Duplicate: Can I comment a JSON file? We are using a .json file
Possible Duplicate: Can you call Directory.GetFiles() with multiple filters? I have a string array:
Possible Duplicate: can’t locate db4o database file I'm trying to create a simple CRUD
Possible Duplicate: Can you call Directory.GetFiles() with multiple filters? Does it possible to get
Possible Duplicate: Can I watch an NSNotification from another class? I am currently using
Possible Duplicate: Each class has two classfiles in jar file Hello I have one

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.