Category : Pascal Source Code
Archive   : MAPFILES.ZIP

Output of file : MAPFILES.DOC contained in archive : MAPFILES.ZIP
MAPFILES - Utility to show open files by all active processes in memory
Version 1.0

Richard S. Sadowsky
Boulder Creek, California
Compuserve ID: 74017,1670

This simple file steps through the MCB chain looking for program segment
prefixes. For each one it finds, it will display the names of all files open.
This program has been tested with DOS 3 and up. Complete source code is

Version 1.0 of this program has a known defficiency in the way it gets the
program name from the PSP. If the environment block has been released, this
program will still attempt to extract the name from that memory. It may
therefore display the name of another program that has reclaimed the vacated
environment block space. There are several ways around this problem. One or
both will be implemented in the next version if there is interest.

Please leave comments regarding this program and the provided source code on
Compuserve in the PCVENB forum section 6. My Compuserve ID is 74017,1670.

Notes on the UNDOCDOS unit:

The book "Undocumented DOS" published by Addison Wesley Publishing Company
(ISBN 0-201-57064-5) was an inspiration to me. I didn't get far into it before
I started trying some of the techniques it documents. The UNDOCDOS unit as
provided here samples a few file related routines for Turbo Pascal. This book
is easily worth its $40+ price tag.


  3 Responses to “Category : Pascal Source Code
Archive   : MAPFILES.ZIP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: