English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 01 July 2009, 17:36   #1
atrionfo
 
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
 
Old 01 July 2009, 17:59   #2
clenched
Registered User
 
Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 771
dir >ram:dir.txt opt ad
clenched is offline  
Old 01 July 2009, 18:06   #3
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
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
Photon is offline  
Old 01 July 2009, 22:04   #4
clenched
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
clenched is offline  
Old 01 July 2009, 22:58   #5
atrionfo
 
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

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 15:17.

Top

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