WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: MDLines on December 23, 2013, 04:38:53 AM

Title: read laccdb file
Post by: MDLines on December 23, 2013, 04:38:53 AM
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
Title: Re: read laccdb file
Post by: Deana on December 23, 2013, 08:38:14 AM
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:

Code (winbatch) Select
IntControl (39, 3, 0, 0, 0) ;allow other open operations for read and write access
data = FileGet( 'c:\temp\test.laccdb' )

Title: Re: read laccdb file
Post by: MDLines on December 23, 2013, 11:07:57 AM
Thank you Deana , it worked a treat.

Martin Lines