Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!oberon!ucla-cs!sm.unisys.com!psivax!uunet!cs.dal.ca!silvert From: silvert@cs.dal.ca (Bill Silvert) Newsgroups: comp.sys.ibm.pc Subject: How do I generate a directory listing? Keywords: callable function, assembler Message-ID: <3209@cs.dal.ca> Date: 6 Mar 89 15:44:40 GMT Organization: Habitat Ecology Div., Bedford Inst. of Oceanography Lines: 15 I need to display a directory listing from within a Fortran program, and the best way to do this seems to be via an assembler routine, possibly one which invokes COMMAND.COM. All I need to do is pass the routine an extension and have a display of all files in the current directory with that extension -- format is not too critical (a GEM style file selector would be super, but not essential). The equivalent DOS command would be DIR *.EXT, or DIR *.%EXT% in batch language. I've heard of undocumented functions that do this, but don't now them. Any help would be greatly appreciated. -- Bill Silvert, Habitat Ecology Division. Bedford Institute of Oceanography, Dartmouth, NS, Canada B2Y 4A2 UUCP: ...!{uunet,utai,watmath}!dalcs!biomel!bill CDN: biomel@cs.dal.CDN BITNET: bs%dalcs@dalac.BITNET