01 July 2009, 17:36 | #1 |
Posts: n/a
|
Recursive Directory Listing
I want to use Amiga DOS to give me a recursive directory listing and save it to a text file. However, I only want the first level of sub-directories. I have tried this:
DIR ALL > RAM:dir.txt This gives me WAY too much info (217 pages worth!). The DIR command doesn't seem to be able to do what I need. I'd settle for ALL sub-directories, even very deep, but I DO NOT WANT any file listings. Any suggestions? Adam |
01 July 2009, 17:59 | #2 |
Registered User
Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 771
|
dir >ram:dir.txt opt ad
|
01 July 2009, 18:06 | #3 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,684
|
You want all the top level folders and their first subfolders only? Doesn't seem to be a "maxlevel" or similar directive to stop at a certain recursion level.
Just add DIRS, ie. DIR ALL DIRS > RAM:dir.txt Also try LIST ALL DIRS QUICK NOHEAD > RAM:dir.txt |
01 July 2009, 22:04 | #4 |
Registered User
Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 771
|
The LIST command gave me an idea. These two lines will go one level deep. Not pretty but it works. Combine into a script or type individually in CLI. The whitespace between %S%S and (dir) will need do be removed to work in 1.3 or less
list >ram:x dirs nohead lformat "echo %S%S (dir)*N dir opt d %S" execute ram:x |
01 July 2009, 22:58 | #5 |
Posts: n/a
|
Thanks, guys! I used Photon's suggestion of:
DIR ALL DIRS > RAM:dir.txt This brought the page-count down to a much-more manageable 28 pages. I'll still need to edit the document (I'd hoped to avoid that), but it should only take about half an hours instead of hours! Thanks. Adam |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wht can't I get a directory listing on my PC hosted FTP from my Amiga? | DDNI | support.OtherUAE | 12 | 23 March 2011 23:04 |
Cover Disk Listing | Basquemactee1 | AMR contributions | 2 | 19 July 2007 00:33 |
CD listing of Amiga CD's | lopos2000 | Amiga scene | 2 | 25 November 2005 23:34 |
Frederic's MIA listing | Fred the Fop | request.Old Rare Games | 33 | 21 November 2001 16:40 |
|
|