Any scripting command or method to retrieve file lock status?
Posted: 30 Dec 2016 18:37
Is there any existing scripting command or example(s) of retrieving a files lock status. Example: a file is open and has any kind of lock flag, a return value from the call could be evaluated to know it is in fact locked.
Why? To prevent scripting commands which halt from trying to perform an action on a file which is locked. i.e., "renameitem"
Error "The process cannot access the file because it is being used by another process."
Thanks!
Why? To prevent scripting commands which halt from trying to perform an action on a file which is locked. i.e., "renameitem"
Error "The process cannot access the file because it is being used by another process."
Thanks!