home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / info / fstat.arc / FSTAT.MAN < prev    next >
Encoding:
Text File  |  1989-12-12  |  1.5 KB  |  35 lines

  1.  
  2.  
  3. NAME
  4.  
  5.      fstat - display complete list of currently open files
  6.  
  7.  
  8.  
  9. SYNOPSIS
  10.  
  11.      fstat
  12.  
  13.  
  14.  
  15. DESCRIPTION
  16.  
  17.      fstat.com is a program to display all of the currently open files
  18.  
  19.      and devices known to the system.  It also shows length, current
  20.  
  21.      offset, number of handles referring to this file, drive or device
  22.  
  23.      type, and program which opened the file.  The standard devices
  24.  
  25.      CON, AUX, PRN, etc. are also listed since they use file handles.
  26.  
  27.      The program might be useful for diagnosing "too many files open"
  28.  
  29.      type messages, since it will show what files are in use by TSRs
  30.  
  31.      in addition to those opened by a foreground program.  It works by
  32.  
  33.      using DOS service 52H, the "list of lists" interrupt, which
  34.  
  35.      returns pointers to most of the internal DOS kernel tables,
  36.  
  37.      including the file tables.  It should work for all DOS versions
  38.  
  39.      2+, although only 3+ can find out the name of the program which
  40.  
  41.      opened any given file.  There is some version specific code for
  42.  
  43.      4.x and it is possible that this may not work on all systems
  44.  
  45.      since the contents of the system tables are not fully documented.
  46.  
  47.  
  48.  
  49. SEE ALSO
  50.  
  51.  
  52.  
  53. BUGS
  54.  
  55.      This seems to work, but it would be nice if this information were made
  56.  
  57.      "official" instead of needing to rely on the usenet "interrupt list"
  58.  
  59.      for the necessary information
  60.  
  61.      It is usually not possible to retrieve the name of a shell (such as
  62.  
  63.      command.com) so it is listed as "-shell-".
  64.  
  65.  
  66.  
  67. AUTHOR
  68.  
  69.      Richard Brittain (richard@calvin.spp.cornell.edu)
  70.  
  71.