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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:14:13+00:00 2026-05-26T01:14:13+00:00

I’m implementing a Windows Explorer Shell Extension for a networked file system on Windows

  • 0

I’m implementing a Windows Explorer Shell Extension for a networked file system on Windows 7, and I’ve hit a snag while implementing the Delete functionality.

Let’s say my remote filesystem hierarchy is as follows:

Dir1
+-Dir2
| +-A
| +-B
+-C

My understanding is that you need to implement ITransferSource::RemoveItem (which I’ve done), but I expected to be called recursively from the furthest child in the filesystem tree first (i.e. a depth-first recursive traversal):

(A, B, Dir2, C, Dir1)

What happens is that I’m called for the root first, then each children, iteratively:

(Dir1, C, Dir2, A, B)

This is a bit weird to me since the Shell will already recursively iterate through all items to be deleted in order to show the progress bar for the operation (the “discovering items” dialog). My remote filesystem does not support deleting non-empty directories; as far as I know, the local filesystem on Windows has the same limitation. I could not find any hints on MSDN about changing the iteration order.

I presume that the actual iteration order varies depending on the creation order of the items in the filesystem.

When implementing this interface method, you can return COPYENGINE_S_DONT_PROCESS_CHILDREN if you recurse and delete entire trees yourself, but I think this will not allow the user to Cancel a deletion in progress (like the standard Explorer shell would). I consider this a sub-optimal solution, but it may have to do if I don’t find a better solution.

My first thought was to queue up the non-empty directory deletion requests for later, but I don’t think this will work, because the extension will not know when the Delete operation for all children of a directory is completed. I could also spawn a thread to delete these items “later” but that’s almost certain to create weird unexplained behaviors and crashes.

So, I guess my question is, what is the proper way to implement the Delete operation in a Windows 7 Shell Extension?

PS: as you can probably tell, Windows Shell Extensions are a completely new topic for me, so I apologize in advance if the question is incomplete; I will refine my question as needed.

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-05-26T01:14:14+00:00Added an answer on May 26, 2026 at 1:14 am

    From the documentation it looks like the EnterFolder and LeaveFolder methods will help you out.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
i want to parse a xhtml file and display in UITableView. what is the
I have a reasonable size flat file database of text documents mostly saved in
I'm parsing an XML file, the creators of it stuck in a bunch social
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but

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.