### 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.
 
Back
Top