How to know if an external file is already opened?

Hi Everyone,

I’m trying to find a way to know if an external file (for ex a txt file) is already opened by another application. For ex you create a c:\test.txt and try to know if you’re the only one that is reading it. What I would like is to know if it’s possible to know when a file is already being accessed by some other things.

By the way I’m trying to develop a solution with the lotusScript language.

Thanks in advance.

PS: for the moment I’m using Dir$(“c:\test.txt”, 0) just to know if the file exists.