Seeking a method to "read" a DOS di
tobin at uicsgva.UUCP
tobin at uicsgva.UUCP
Mon Feb 15 11:11:00 AEST 1988
It's been a while since I've done this, but as I recall there is a pair
of DOS function calls entitled "Find first matching" and "Find next matching
file". The parameter passed to "find first" is a character string providing
a template (using wildcards) of the filename you want to match. To match
the entire directory, use "*.*". For example, to find all the files in
\top\middle\lowest, give the template "\top\middle\lowest\*.*" to
"find first". Subsequent calls to "find next" simply provide the next
file in the directory to the caller.
Some of the details are a bit fuzzy to me, but I assume you have a DOS
Technical Reference manual. They are explained well there, and after a
little experimentation you should be able to use these calls quite well.
I have used them from MSC V4.0 without any assembler code at all. I have
that code around somewhere, and could probably dig it up if you get stuck.
Paul Tobin
University of Illinois
tobin at bach.csg.uiuc.edu
More information about the Comp.sys.att
mailing list