Check who has file open

Post comments and suggestions for RoboTask here
Post Reply
Rukbunker
Posts: 192
Joined: Mon Feb 22, 2016 4:06 pm
Location: Netherlands

Check who has file open

Post 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 ;)
juanlu
Posts: 46
Joined: Wed Jul 31, 2019 12:33 am

Re: Check who has file open

Post 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
Post Reply