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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:37:36+00:00 2026-05-12T14:37:36+00:00

I created a FileSystemWatcher (as a Windows Service) to watch for plug-ins being dropped

  • 0

I created a FileSystemWatcher (as a Windows Service) to watch for plug-ins being dropped in a directory (as ZIP files) so I can automatically unzip them, set some registry keys, and install them into my application. This works fine.

I also have the FileSystemWatcher looking to see when a ZIP file is deleted, so I can delete the install, remove the registry keys, etc. This, too, works fine…except for one catch.

When I do a delete, the file is completely deleted, but it looks like another ZIP file had been added, but it has a really strange name. Also, the contents in the registry are the same as the file I just deleted. Here is an example:

Install
-------
File: Example.zip
Extracts to: C:\Plugins\Example\*.*
Registry Key: HKLM\Software\MySoftware\Plugins\Example\[keys]

Delete
------
File: Example.zip
Directory Deletes
Registry Deletes
Creation of Folder: C:\Plugins\ER\S-1-52359402-2823975235\202\*.* where the files are the same as Example.zip's files.
Registry Key: HKLM\Software\MySoftware\Plugins\ER\S-1-52359402-2823975235\202\[keys] where the keys are the same as Example.zip's.

Those last two steps should not happen. I’m really confused on what is going on here. Is this a virus scanner that is doing it? Any help would be much appreciated.

Update: Per Jon Skeet’s response, it appears that it is the Recycling Bin causing this problem (I am watching subdirectories). Is there any way to consistently ignore these directories (hidden? recycling bin? something else?).

  • 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-12T14:37:36+00:00Added an answer on May 12, 2026 at 2:37 pm

    Is it the recycle bin perhaps? How are you deleting the file? If you’re doing it manually from Explorer, is there any difference between a “normal” highlight-and-delete and the “delete immediately” behaviour of Shift+Delete?

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

Sidebar

Related Questions

I created a Windows Service that watches a directory using FileSystemWatcher and when a
I have created a C# Windows Service application that starts a FileSystemWatcher to monitor
I am monitoroing a folder using FileSystemWatcher and deleting the files created under the
Hi I am creating a windows service to watch certain directories to see if
I'm creating a Windows service that makes use of a FileSystemWatcher to monitor a
I am using the FileSystemWatcher to watch a folder for new files. When a
I need to execute Show created file name each time Watch files fires an
I have a windows service using a FileSystemWatcher to monitor a folder, print added
Created .NET WCF service, tested it - works. Generated schemas from Data and service
I created two layout folder in the layout-land,layout-port containing same files to pick layout

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.