At 2:50 PM -0800 3/1/00, [log in to unmask] wrote:
>At 2:33 PM -0800 3/1/00, [log in to unmask] wrote:
>>Is there a way to use FINFO to let me know a file is being accessed by
>>another process?
...
> :if finfo('myfile','accessors') > 0 then
...
>Now, if you don't have 6.0, but you do have some reasonably recent version
>of 5.5, then you could do
>
> :listf myfile,8 > tmpfile
>
>and then look at record #3 of tmpfile for "0 Accessors" to determine that
>the file isn't being accessed.
Oh yeah, there's another, even more kludgy method which should work on any
version of MPE:
:setjcw cierror 0
:continue
:rename myfile, myfile
:if cierror = 372 then
HTH,
Barry Lake [log in to unmask]
Allegro Consultants, Inc. www.allegro.com
(408)252-2330