Check who has file open

Post comments and suggestions for RoboTask here
Post Reply
Rukbunker
Posts: 214
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: 49
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
sarnusch
Posts: 53
Joined: Thu Apr 28, 2022 9:05 am

Re: Check who has file open

Post by sarnusch »

Good morning,
I would like to make this topic current again.
I have to update an excel file every day but if someone has already opend it the update fails.
It would be great if I could identify the person who has opened the file to inform them that the update has failed because the file is still open.
Post Reply