On Thu, 7 Nov 1996 14:14:22 -0800, Rodney Behrendorff <[log in to unmask]>
wondered: FINFO - How can I determine if a file is in use?
Sure, you can use MPEX (I'm a big fan) but here's a simpler method,
even if you have MPEX, that I hadn't seen posted (yet):
!continue
!rename testfile.grp,testfile.grp
!while CIERROR=372 and HPFSERR=90
! pause 30
! setjcw CIERROR,0
! continue
! rename testfile.grp,testfile.grp
!endwhile
This example actually hangs the job until the rename stops failing
due to EXCLUSIVE VIOLATION, FILE BEING ACCESSED (FSERR 90).
Dropping the FSERR condition would include other causes for rename
failure, such as non-existent permanent file or lockword violation.
------------
Dirk Punzelt 407/768-7138
Rockwell / Avionics - Collins
[log in to unmask]