B
barkertj
I'm working on a document-management project at my company.
as you know, when you open a file that is on a network drive, office
apps will say 'file X is being modified by <Person> do you want to
open in read-only mode'. I want to see if I can emulate this behaviour
programatically to lock documents
I've read that office apps use a ~$XXX.tmp as a lock-file.
So, to test, i created a document, made edits and then copied the .doc
and .tmp to another directory
I thought that if i then went to view the file (with it's .tmp file
still there) that it would tell me it was locked. But alas no.
I also sent these files to someone else to see if it would say I had
it locked but Word ignored that too.
If anyone has any creative ideas in this area let me know!
as you know, when you open a file that is on a network drive, office
apps will say 'file X is being modified by <Person> do you want to
open in read-only mode'. I want to see if I can emulate this behaviour
programatically to lock documents
I've read that office apps use a ~$XXX.tmp as a lock-file.
So, to test, i created a document, made edits and then copied the .doc
and .tmp to another directory
I thought that if i then went to view the file (with it's .tmp file
still there) that it would tell me it was locked. But alas no.
I also sent these files to someone else to see if it would say I had
it locked but Word ignored that too.
If anyone has any creative ideas in this area let me know!