Re: Is file is being used
- From: Mike Klaene <mklaene@xxxxxxxxxxx>
- Date: Wed, 13 Dec 2006 15:18:25 GMT
What I find to be amazing is that this thread exists in 2006.
A system on which I was programming in 1976 that only had 16K of RAM and supported up to 16 attached (via coax) workstations supported the concept of "Open Private". Stated simply, if a file was already open, even if the other workstation had done an "Open Shared", my open would fail. The unit that functioned as the "cluster controller" took care of this for me. File and record locks were forced, not cooperative.
By the way, the system was a Singer/ICL 1500 series manufactured in Utica, NY. It saw a lot of use in the retail market as it also was capable of supporting electronic cash registers (POS devices).
Mike
..
Rad [Visual C# MVP] wrote:
On 12 Dec 2006 06:03:04 -0800, Eran.Yasso@xxxxxxxxx wrote:.
Hi,
I have a mdb file shared in the LAN. I want to write app that verifies
if it's open.
If the file is not open, then my app can open the file.
if the file is used, then the app won't open it.
I also want this app to have handle to this file, then when the user
stops editting this file, he can close it using this app.
so my questions are:
1. How can i tell if a file is being used(edited, open, etc'...)
2. How can i close file(and save the data)?
TIA.
If I'm not wrong a MDB generates a temporary lock file when it is open,
with the same name but the extension .LDB. You can try checking for the
existence of that file to know if its is open
As for closing it from another application -- not sure about that
- Follow-Ups:
- Re: Is file is being used
- From: Peter Duniho
- Re: Is file is being used
- References:
- Is file is being used
- From: Eran . Yasso
- Re: Is file is being used
- From: Rad [Visual C# MVP]
- Is file is being used
- Prev by Date: Re: Guid.NewGuid '-' character
- Next by Date: Re: Windows service with a configuration file
- Previous by thread: Re: Is file is being used
- Next by thread: Re: Is file is being used
- Index(es):
Relevant Pages
|