I am trying to read the MS access 2010 database lockfile [dbname].laccdb in order to see who is still logged on. I tried binary functions but I cant open the file. I notice that you can open it in the windows 7 native binary browser and notepad from the right click 'open other' menu. Is there a way I can read it with winbatch ?
Martin Lines
The IntControl 39 function allows the definition of required access rights. Try using it to open the file with the most flexible file sharing mode:
IntControl (39, 3, 0, 0, 0) ;allow other open operations for read and write access
data = FileGet( 'c:\temp\test.laccdb' )
Thank you Deana , it worked a treat.
Martin Lines