home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!vtserf!csugrad!ceharris
- From: ceharris@csugrad.cs.vt.edu (Carl Harris)
- Newsgroups: alt.msdos.programmer
- Subject: Re: Stat-ing a Directory file
- Message-ID: <BxIvF5.Ao6@csugrad.cs.vt.edu>
- Date: 10 Nov 92 22:49:53 GMT
- References: <BxGsCA.Lnu@fang.att.com>
- Organization: Virginia Tech Computer Science Dept, Blacksburg, VA
- Lines: 28
- X-Newsreader: Tin 1.1 PL4
-
- pheffner@fang.att.com (Paul Heffner) writes:
- :
- : 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
-
-
- You can open a directory just like any other file, and read the time
- and date stamp of any file there in. The format is the same as that used
- in the root directory.
-
- --
- +---------------+---------------------------------------------------+
- | Carl Harris |program (tv). To engage in an activity similar to |
- | CS @ VA TECH |banging one's head against a wall, but with fewer |
- | |opportunities for reward. |
-