Is there a way to determine whether a file in a different directory is open or not?
Thank you
Harvey
Harvey
Is there a way to determine whether a file in a different directory is open or not?
Do you mean : a file opened by someone else ?
In that case, try to open it exclusively. If you can't, the file is opened by someone else.
Regards,
Michel D.
Genk (Belgium)
I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

A user is in directory 1 wants to use a DBF file in directory 2.
How can I find out if its already open in directory 2 and keep out the directory 1 user who wants to use it.?
TRY
 OPEN (cDbf) EXCLUSIVE
CATCH
 ? "Dbf already opened"
ENDThanks for the help. Got it working.