Page 1 of 1

Check who has file open

Posted: Fri Sep 04, 2020 9:54 am
by Rukbunker
Hey Oleg,

Is it possible somehow to see which user (file lock) has opened the file and returning that value to a variable? I'm using now the {IsFileFree(c:\autoexec.bat)} method. It returns a true or false but for the error handling, I would like to include who is the one to blame ;)

Re: Check who has file open

Posted: Mon Oct 05, 2020 7:57 pm
by juanlu
Agree.

And additionally, the ability to unlock the file (close the file, or kill the process, etc.): https://robotask.com/forum/viewtopic.php?f=2&t=2751