home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / msdos / programm / 2696 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.2 KB  |  26 lines

  1. Newsgroups: alt.msdos.programmer
  2. Path: sparky!uunet!pipex!bnr.co.uk!bnrgate!corpgate!news.utdallas.edu!hermes.chpc.utexas.edu!cs.utexas.edu!swrinde!emory!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!fang!pheffner
  3. From: pheffner@fang.att.com (Paul Heffner)
  4. Subject: Stat-ing a Directory file
  5. Message-ID: <BxGsCA.Lnu@fang.att.com>
  6. Organization: AT&T BAP Architecture, Maitland FL
  7. Date: Mon, 9 Nov 1992 19:48:06 GMT
  8. Lines: 16
  9.  
  10.  
  11. Anyone out there know a way of obtaining the size and time/date
  12. information of a MS-DOS directory file using standard DOS calls
  13. under MASM? For a regular file, you can use Int 21, function 5700
  14. to get the time and date of an open file using its handle, likewise
  15. you can use the old seek-to-end trick to get the file size, but both 
  16. of these require an open file handle to work, and you can't open a
  17. directory file like in Unix (or can you?). The MS C stat function
  18. goes as far as returning what seems to be a good set of timestamp
  19. information, so I guess it's there for using if you know how to get
  20. it. (Or does that function resort to sneaky non-standard methods
  21. to get the info?) All input would be appreciated!
  22.  
  23. Thanks!
  24.  
  25. Heff
  26.