Good way to check if file already opened? (GW-BASIC porting) (Developers)
> I am trying to port the
> CHKFOP
> routine in Microsoft's GW-BASIC sources, to work with MS-DOS 2+ file
> descriptors rather than DOS 1.x FCBs.
>
> The routine is supposed to check whether a named file is currently open, so
> that e.g. the KILL and NAME commands can prevent one from deleting or
> renaming an open file.
>
> Any ideas on how I might do this?
I think, you have to walk the System File Table(s).
See RBIL 04h DWORD -> first System File Table (see #01639,#01640,#01641,#01642)
---
Forum admin
Complete thread:
- Good way to check if file already opened? (GW-BASIC porting) - tkchia, 02.02.2021, 14:35 (Developers)
- Good way to check if file already opened? (GW-BASIC porting) - Ringding, 02.02.2021, 20:57
- Good way to check if file already opened? (GW-BASIC porting) - tkchia, 04.02.2021, 09:05
- Good way to check if file already opened? (GW-BASIC porting) - rr, 02.02.2021, 21:16
- Good way to check if file already opened? (GW-BASIC porting) - Laaca, 02.02.2021, 22:18
- Good way to check if file already opened? (GW-BASIC porting) - tkchia, 13.02.2021, 19:23
- Good way to check if file already opened? (GW-BASIC porting) - Ringding, 02.02.2021, 20:57