Re: Is file is being used
- From: "Rad [Visual C# MVP]" <nospam@xxxxxxxxxx>
- Date: Tue, 12 Dec 2006 22:43:55 +0300
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
--
Bits.Bytes
http://bytes.thinkersroom.com
.
- Follow-Ups:
- Re: Is file is being used
- From: Mike Klaene
- Re: Is file is being used
- From: Eran . Yasso
- Re: Is file is being used
- References:
- Is file is being used
- From: Eran . Yasso
- Is file is being used
- Prev by Date: Re: OT: Database Modeling software
- Next by Date: Re: How do i select the text from a WinForm label?
- Previous by thread: Re: Is file is being used
- Next by thread: Re: Is file is being used
- Index(es):
Relevant Pages
|