### Lock MS Access DB File so it cant be moved... Please help me!! ###

  • Thread starter Thread starter BuzzLight
  • Start date Start date
B

BuzzLight

Hello all, I need to know how to lock a file on the filesystem during runtime so that no body can move a file (say c:\myfile.mdb) while the program is running. Only should be locked moving wise, I still want it to be editable while the program is running.

Please help me with this... I cant find anything about this on websites.

Thankyou
 
Open the file but not in exclusive mode. It can't be moved but will be
editable by other processes.

Laurie Paulin
Perth, Western Australia

BuzzLight said:
Hello all, I need to know how to lock a file on the filesystem during
runtime so that no body can move a file (say c:\myfile.mdb) while the
program is running. Only should be locked moving wise, I still want it to be
editable while the program is running.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top