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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:07:05+00:00 2026-05-31T03:07:05+00:00

FileSystemWatcher C# Folder Structure C:\A\B\C\D\E\F\abc.txt Delete a nested folder B fires only one event

  • 0

FileSystemWatcher C#

Folder Structure C:\A\B\C\D\E\F\abc.txt

Delete a nested folder B fires only one event for the root folder B

But Shift + Delete fires the events for all sub folders and files.

I need to get Delete nested folder events same as Shift + Delete

The below question is similar to my requirement, but it’s not working

C# FileSystemWatcher.Deleted not Firing on "normal" deleting?

  • 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-31T03:07:07+00:00Added an answer on May 31, 2026 at 3:07 am

    The below question is similar to my requirement, but it’s not working

    Define “not working”. As mentioned in the accepted answer for question that you referenced, the default behavior in Windows is that when you press the delete key, the file is not actually deleted- it is moved to a special folder called the recycle bin.

    If you handle the renamed and changed events, you should see evidence of the moves to the recycle bin, but as you found the events will probably be raised only for the parent folder (see also Detecting moved files using FileSystemWatcher). There is probably no way to get the events for the child folders/files. If you need to keep track of the children, you’ll need to index them into some data structure before they get deleted.

    Also, keep in mind that some people (like me) disable the recycle bin altogether, and for us a delete is a delete.

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

Sidebar

Related Questions

while the application is running i'm using FileSystemWatcher to monitor the folder. But what
I am looking to monitor a folder for create events using the FileSystemWatcher in
For example, I can catch the Delete event for various files in a folder
I want to monitor a folder located on another computer using the FileSystemWatcher .
I'm trying to monitor a folder using C# and FileSystemWatcher. everything works well, except
When there is a big file moved into the watched folder,it raises created event
It seems like , FileSystemWatcher triggers events more than once. Here is my settings
I am monitoroing a folder using FileSystemWatcher and deleting the files created under the
I am using a .NET FileSystemWatcher on a Windows server to watch a folder
I'm using FileSystemWatcher to monitor folder A. if a file is created or copied

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.