SFT.BAT - A batch for displaying the System File Table

This is a neat batch which displays the computer's table of file handles.
I can't get too technical because to be honest I know little of what goes
on down there, but detailed knowledge is not required to simply display it.
I only needed to find the table's starting point in memory (and so will you
if you try to get this batch to work), the offsets and step of the filenames,
and where the open-file flag is. I gathered this info using tools like MSD
and DEBUG. The files are displayed in columns, * is placed after the
files which are currently open.

The batch echoes out a QBasic program, runs it then deletes it.
The trick to echoing QBasic code is doing without < and >, ouch.
No matter, SGN(a-32)=1 is functionally equivalent to a>32.
You must customize the numbers after memstart= and numfiles=
or it won't work properly if at all. Follow the instructions listed
in the comments for to find the start of the system file table using
the MSD utility, the value for numfiles can be found in the
CONFIG.SYS file.


