Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!aurora!amelia!ames!hao!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!uicsgva!tobin From: tobin@uicsgva.UUCP Newsgroups: comp.sys.att Subject: Re: Seeking a method to "read" a DOS di Message-ID: <4500004@uicsgva> Date: 15 Feb 88 01:11:00 GMT References: <902@cblpe.ATT.COM> Lines: 19 Nf-ID: #R:cblpe.ATT.COM:902:uicsgva:4500004:000:976 Nf-From: uicsgva.UUCP!tobin Feb 14 19:11:00 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@bach.csg.uiuc.edu