Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Good way to check if file already opened? (GW-BASIC porting) (Developers)

posted by rr Homepage E-mail, Berlin, Germany, 02.02.2021, 21:16

> 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:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 172 users online (0 registered, 172 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum