Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • This isn't going to work. The documentation does not place any restrictions on the order of deletion - merely that all handles to the file must have been opened with FILE_SHARE_DELETE. Commented Aug 30, 2010 at 11:49
  • To clarify, my point was that creating a new link and letting the old one die would keep the file around. But that's weird, and releases the original name. Your suggestion to just use two handles all of the time is better, but this should work. (DELETE_ON_CLOSE does not delete a file but rather a link.) Commented Aug 31, 2010 at 15:13