Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!OZ.AI.MIT.EDU!OAF.G.PELLER From: OAF.G.PELLER@OZ.AI.MIT.EDU (Adam Peller) Newsgroups: comp.sys.apple Subject: Re: catalog to output other than screen Message-ID: <8705222028.aa15810@SMOKE.BRL.ARPA> Date: Fri, 22-May-87 20:26:53 EDT Article-I.D.: SMOKE.8705222028.aa15810 Posted: Fri May 22 20:26:53 1987 Date-Received: Sat, 23-May-87 19:18:31 EDT References: <[ECLA.USC.EDU]20-May-87.09:24:26.BHUBER> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 26 Message-ID: <12304519966.64.OAF.G.PELLER@OZ.AI.MIT.EDU> To get the output from the catalog command (in ProDOS) you just open the pathname as a DIR file... for example: 10 print chr$(4);"open /users.disk,tdir" 20 print chr$(4);"read /users.disk,tdir" 30 get a$:print a$; 40 goto 30 50 end (this would read the directory char by char and put it on the screen - you'd probably need some kind of error-trapping for end of file too...) 5 onerr goto 50 ! very BASIC This will also work for subdirectories, but only in prodos. If you want a catalog in DOS 3.3, there are two ways and neither is as easy as the program above... You'd either have to read the screen (w/strange text storage at $400-$7ff, or you'd have to read the raw sectors at track $11 with a RWTS subroutine (see DOS 3.3 manual) good luck, Adam Peller ADAMP%OZ@MC.LCS.MIT.EDU (Arpa) -------