English Amiga Board

Go Back   English Amiga Board > Support > support.Other

Thread Tools
Old 01 July 2009, 18: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?

Old 01 July 2009, 18:59   #2
Registered User

Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 639
dir >ram:dir.txt opt ad
clenched is offline  
Old 01 July 2009, 19:06   #3
Photon's Avatar
Join Date: Nov 2004
Location: Hult / Sweden
Posts: 4,591
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

Photon is offline  
Old 01 July 2009, 23:04   #4
Registered User

Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 639
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
clenched is offline  
Old 01 July 2009, 23: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!



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 24 March 2011 00:04
Cover Disk Listing Basquemactee1 AMR contributions 2 19 July 2007 01:33
CD listing of Amiga CD's lopos2000 Amiga scene 2 26 November 2005 00:34
Frederic's MIA listing Fred the Fop request.Old Rare Games 33 21 November 2001 17:40

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 13:15.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06266 seconds with 13 queries