Re: Is file is being used



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
.



Relevant Pages

  • Is file is being used
    ... I have a mdb file shared in the LAN. ... I want to write app that verifies ... If the file is not open, then my app can open the file. ... stops editting this file, he can close it using this app. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Hide/disable Close button
    ... Thanks, Immanuel. ... the Exit button closes the db, then the app. ... as "closing the db")? ... >routine on the On Close event of this form. ...
    (microsoft.public.access.modulesdaovba)
  • TCP/IP port mapping through RDP session? (virtual channel?)
    ... I'm doing some testing in preparation for a web app ... which will run on a private LAN. ... app needs to do is query the domain controller using LDAP (to do user ...
    (microsoft.public.windows.terminal_services)
  • Re: Meaning of exception 0xC0000006 (EXCEPTION_IN_PAGE_ERROR)
    ... > I have a client that is getting 0xC0000006 errors in my app, ... > me that this is a LAN connectivity problem. ... which happen to be the only users experiencing this problem ... > was unable to load the page. ...
    (microsoft.public.vc.debugger)
  • Data Access via VPN
    ... I have an app that originally was used on a LAN. ... The app is very recordset intensive and uses Access as the database. ... through the VPN even though it is lightning fast over the LAN. ... on the work station sends a request to the server on the server ...
    (microsoft.public.vb.general.discussion)