Reputation
611
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 17
Newest
 Yearling
Impact
~39k people reached

  • 0 posts edited
  • 1 helpful flag
  • 32 votes cast
Apr
27
revised How to distinguish whether a file is being saved or deleted? (“Save” in MS Word deletes then re-creates)
added 159 characters in body; edited title
Apr
21
awarded  Yearling
Feb
20
comment Writing shell extensions in C#: What are the risks?
@rwong: Would you mind adding an answer about that, including how SharpShell manages to avoid that (or not)? (1) Some kind of garbage collection I guess? (2, 3, 4) No, sorry, none of the shell extension tutorials I followed mentioned this, but if you write an answer be sure to mention this so that people like me can look it up, thanks!
Feb
19
asked Writing shell extensions in C#: What are the risks?
Nov
30
accepted Default Ant target: help or jar?
Jun
2
awarded  Popular Question
May
1
comment How to distinguish whether a file is being saved or deleted? (“Save” in MS Word deletes then re-creates)
@DocBrown: My clients' files are 90% MS Word, and they only care about history for MS Word files. So while I understand that the same problem can arise with other applications, my question really is about MS Word files :-)
May
1
comment How to distinguish whether a file is being saved or deleted? (“Save” in MS Word deletes then re-creates)
I have proofread the specification several times and I am pretty sure there is no deleted state. Searching for "deleted" in the specification does not lead to any information about that "deleted state", would you mind telling where you have seen it? Maybe what you have seen is deleteType, which is only a way to delete a type, not a type that refers to deleted objects. Cheers!
May
1
comment How to distinguish whether a file is being saved or deleted? (“Save” in MS Word deletes then re-creates)
Sorry I still don't understand. How can you rename to Example.doc without deleting Example.doc first? Or does the atomic transaction actually include both A) Delete Example.doc B) Rename ~wrdxxxx.tmp to Example.doc? I am an extremely optimistic guy, and I believe I can at least try to pressure Microsoft into making their product better :-)
May
1
comment How to distinguish whether a file is being saved or deleted? (“Save” in MS Word deletes then re-creates)
I am not sure to understand your steps with atomic rename. In your step 2, I guess the rename will fail, because Example.doc still exists, right? If there is a step 0, could you please add it, or add more detail about what exactly happens to each file when? Thanks a lot!
May
1
comment How to distinguish whether a file is being saved or deleted? (“Save” in MS Word deletes then re-creates)
@rwong: Every time FileSystemWatcher notifies me, I check/sync the whole thing (all folders/files). I also run a sync at startup and every N minutes. Do you mean there is a more reliable way?
May
1
comment How to distinguish whether a file is being saved or deleted? (“Save” in MS Word deletes then re-creates)
When a file is deleted, it must be seen as deleted by other users of the server, and obviously many people use the server, not just my tool. Details: The server can be any CMIS-compliant server, I don't have the choice of protocol, I edited my question to reflect that.
May
1
revised How to distinguish whether a file is being saved or deleted? (“Save” in MS Word deletes then re-creates)
added 131 characters in body
May
1
comment How to distinguish whether a file is being saved or deleted? (“Save” in MS Word deletes then re-creates)
@DocBrown: Sync might happen at anytime. It happens at regular interval, AND is also triggered by a FileSystemWatcher.
Apr
30
asked How to distinguish whether a file is being saved or deleted? (“Save” in MS Word deletes then re-creates)
Jan
22
awarded  Nice Answer
Nov
4
awarded  Popular Question
Sep
24
awarded  Autobiographer
Aug
24
awarded  Good Question
Jul
28
awarded  Popular Question