Locked files in MS Word
Hey - I'm coming across a problem with an application i'm working on that goes through a given directory and finds all word files and deletes their template, so that it can be restored to it's default.
I have it skipping read-only files but when it comes across a file that is locked because it is in use by another user, the program crashes. I can't seem to find any way of checking for this and handling it. If anyone has any ideas for me I would greatly appreciate it. Thanks for reading.
|