Subj : Re: split output To : All From : Jonathan de Boyne Pollard Date : Wed Mar 06 2002 09:44 am From: Jonathan.de.Boyne.Pollard@f3.n342.z1.cereal.mv.com (Jonathan de Boyne Pollard) Subject: Re: split output From: Jonathan de Boyne Pollard NE> I thought that I could utilize the /N with DIR - but that will list the NE> directory contents beneath a Path header only (not before each file name). With 4NT, to achieve this you can simply use the /F option to the DIR command: [C:\Temp\Test]dir /f/s *.ext C:\Temp\Test\FileName.EXT C:\Temp\Test\1\a\b\c\FileName.EXT C:\Temp\Test\2\FileName.EXT [C:\Temp\Test] Here is a REXX script that does the same thing: /* FINDMATCHINGFILES.REXX */ /* * Scan a directory tree for files that match a search wildcard * specification and print out the entire pathnames of the results. * * Usage: * FINDMATCHINGFILES.REXX search-wildcard-specification */ /* Incorrect capitalisation to accommodate broken Win32 REXXUTIL port */ call RxFuncAdd 'SysFileTree','rexxutil','sysfiletree' parse arg wildcard . call SysFileTree wildcard, "files", "SOB" do i = 1 to files.0 say files.i end -- |Fidonet: Jonathan de Boyne Pollard 1:342/3 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .