Article View: alt.msdos.programmer
Article #614Stat-ing a Directory file
From: Paul Heffner
Date: Mon, 09 Nov 1992 19:48
Date: Mon, 09 Nov 1992 19:48
16 lines
1222 bytes
1222 bytes
Anyone out there know a way of obtaining the size and time/date information of a MS-DOS directory file using standard DOS calls under MASM? For a regular file, you can use Int 21, function 5700 to get the time and date of an open file using its handle, likewise you can use the old seek-to-end trick to get the file size, but both of these require an open file handle to work, and you can't open a directory file like in Unix (or can you?). The MS C stat function goes as far as returning what seems to be a good set of timestamp information, so I guess it's there for using if you know how to get it. (Or does that function resort to sneaky non-standard methods to get the info?) All input would be appreciated! Thanks! Heff
Technical Details
Message-ID:
<BxGsCA.Lnu@fang.att.com>Path:
arc1-ca.pugleaf.net!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!pheffnerShow Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer Path: arc1-ca.pugleaf.net!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 From: pheffner@fang.att.com (Paul Heffner) Subject: Stat-ing a Directory file Message-ID: <BxGsCA.Lnu@fang.att.com> Organization: AT&T BAP Architecture, Maitland FL Date: Mon, 9 Nov 1992 19:48:06 GMT Lines: 16