Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
0 crawler(s) on-line.
 108 guest(s) on-line.
 1 member(s) on-line.


 Hammer

You are an anonymous user.
Register Now!
 Hammer:  3 mins ago
 agami:  24 mins ago
 matthey:  1 hr 17 mins ago
 AmigaMac:  2 hrs 16 mins ago
 DiscreetFX:  2 hrs 18 mins ago
 RobertB:  3 hrs 53 mins ago
 pixie:  4 hrs 41 mins ago
 Deaths_Head:  5 hrs ago
 amigakit:  5 hrs 27 mins ago
 zipper:  5 hrs 57 mins ago

/  Forum Index
   /  Amiga OS4 Software
      /  Txt file of dir drawers. How ?
Register To Post

Goto page ( 1 | 2 Next Page )
PosterThread
Mrodfr 
Txt file of dir drawers. How ?
Posted on 13-Feb-2011 5:56:05
#1 ]
Super Member
Joined: 28-Jan-2007
Posts: 1396
From: French

Hello,

I would like to create a txt file of drawers directories.

For example, on your roms drawer, you have mame drawer and inside you have all the mame roms.

the result on the file should be:

mame
green beret
bubble bobble
....

No need to have sub drawer of name of files inside green beret or bubble bobble.


- How can I do that with a dir command or third party dir replacements ?
- Maybe a database program should do that and filter/remove easily additionnal result of a dir scan by the database program ?



example:

dir VotreRépertoire: ALL DIRS >Liste.txt

give a good example but all all the sub-drawers and I just need N and N-1 drawer on the list.



_________________
BTW, what you have done for the amiga today ????

-A1200+Mediator+VooDoo3+060/50+96mo+SCSI-KIT
-SAM440EP-667mhz-on MapowerKC3000+AOS4.1

Amiga Docs Disks Preservation Project

 Status: Offline
Profile     Report this post  
ZeroG 
Re: Txt file of dir drawers. How ?
Posted on 13-Feb-2011 7:21:37
#2 ]
Cult Member
Joined: 16-Jul-2004
Posts: 544
From: Germany

@Mrodfr

LIST Work:something TO RAM:xyz.txt QUICK NOHEAD

or maybe

LIST Work:something TO RAM:xyz.txt QUICK NOHEAD SORT=NAME

for a sorted list, or

LIST Work:something TO RAM:xyz.txt QUICK NOHEAD PAT=~(#?.info) SORT=NAME

for a sorted list, but without .info files in it.

Last edited by ZeroG on 13-Feb-2011 at 07:28 AM.

 Status: Offline
Profile     Report this post  
tonyw 
Re: Txt file of dir drawers. How ?
Posted on 13-Feb-2011 9:49:27
#3 ]
Elite Member
Joined: 8-Mar-2003
Posts: 3240
From: Sydney (of course)

@ZeroG

Shouldn't that List command include "dirs" if that's all he wants to see?

eg:

list quick sort dirs nohead Work:something to RAM:xyz.txt

_________________
cheers
tony

Hyperion Support Forum: http://forum.hyperion-entertainment.biz/index.php

 Status: Offline
Profile     Report this post  
Mrodfr 
Re: Txt file of dir drawers. How ?
Posted on 13-Feb-2011 12:14:37
#4 ]
Super Member
Joined: 28-Jan-2007
Posts: 1396
From: French

@ZeroG

LIST Work:something TO RAM:xyz.txt QUICK NOHEAD

work but that just use the drawers under work:something


dir work:something ALL DIRS >Liste.txt

work but take all the drawers and sub-drawers


In fact the best is to a a dir with, example:

dir VotreRépertoire: ALL DIRS LEVEL=2 >Liste.txt

like that just drawers and just the first level of sub-drawers only on liste.txt

I need:

accept- discograhy
breaker
russian roulette
metal heart
....
Iron maiden - discography
iron maiden
piece of mind
the number of the beast
....

Because I have main drawers with name of band and subdrawers, name of the albums.


no third party program or database program who could take drawers exist ?

_________________
BTW, what you have done for the amiga today ????

-A1200+Mediator+VooDoo3+060/50+96mo+SCSI-KIT
-SAM440EP-667mhz-on MapowerKC3000+AOS4.1

Amiga Docs Disks Preservation Project

 Status: Offline
Profile     Report this post  
ZeroG 
Re: Txt file of dir drawers. How ?
Posted on 13-Feb-2011 15:53:59
#5 ]
Cult Member
Joined: 16-Jul-2004
Posts: 544
From: Germany

@tonyw
Quote:

Shouldn't that List command include "dirs" if that's all he wants to see?

Yes, i have some problems to understand what Mrodfr writes...

@Mrodfr

dir Work:#?/#? dirs >ram:liste.txt

 Status: Offline
Profile     Report this post  
Mrodfr 
Re: Txt file of dir drawers. How ?
Posted on 13-Feb-2011 17:08:59
#6 ]
Super Member
Joined: 28-Jan-2007
Posts: 1396
From: French

@ZeroG

Work and give another solution to have the result I would like to see
(drawer and subdrawer are on the same line) but with dir no possibility to have the result sorted like LIST command previously.

This is not the result I have expected to see but It's the nearest one, thanks..


If I could write something on the AOS4 bugzilla I will add, as feature request, a level command/argument on dir and list.

Last edited by Mrodfr on 13-Feb-2011 at 05:10 PM.
Last edited by Mrodfr on 13-Feb-2011 at 05:09 PM.

_________________
BTW, what you have done for the amiga today ????

-A1200+Mediator+VooDoo3+060/50+96mo+SCSI-KIT
-SAM440EP-667mhz-on MapowerKC3000+AOS4.1

Amiga Docs Disks Preservation Project

 Status: Offline
Profile     Report this post  
ZeroG 
Re: Txt file of dir drawers. How ?
Posted on 13-Feb-2011 18:19:55
#7 ]
Cult Member
Joined: 16-Jul-2004
Posts: 544
From: Germany

@Mrodfr
Quote:

...but with dir no possibility to have the result sorted like LIST command previously.


dir Work:#?/#? dirs >T:temp
sort T:temp ram:liste.txt

 Status: Offline
Profile     Report this post  
sundown 
Re: Txt file of dir drawers. How ?
Posted on 13-Feb-2011 21:38:59
#8 ]
Elite Member
Joined: 30-Aug-2003
Posts: 5120
From: Right here...

@Mrodfr

Just on the off chance this is what you could use, check out Visualguide on Amimet. It will create an amigaguide file of directories/partitions. It's 68k, but still works with OS4.1.2, some options fail, but no GR.

_________________
Hate tends to make you look stupid...

 Status: Offline
Profile     Report this post  
Severin 
Re: Txt file of dir drawers. How ?
Posted on 14-Feb-2011 19:11:33
#9 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2740
From: Gloucestershire UK

@ZeroG

Quote:

ZeroG wrote:

dir Work:#?/#? dirs >T:temp
sort T:temp ram:liste.txt


I just use:

Dir all dirs >ram:temp

Then use cygnused to strip off the " (dir)" endings and replace each block of 5 spaces with a tab to shrink the filesize eg. from 19,107 bytes down to 13,065 bytes. It's very easy to write a macro to do it, just load the file press one key and the file is converted and saved. Don't forget to save the macro.

_________________
OS4 Rocks
X1000 beta tester, Sam440 Flex (733)

Visit the Official OS4 Support Site for more help.

It may be that your sole purpose is to serve as a warning to others.

 Status: Offline
Profile     Report this post  
Deniil715 
Re: Txt file of dir drawers. How ?
Posted on 14-Feb-2011 20:53:29
#10 ]
Elite Member
Joined: 14-May-2003
Posts: 4237
From: Sweden

@Mrodfr

I would recommend that you tried some things with MultiRen http://www.onyxsoft.se.

- Add files recursive to the list from your directory. (Yes files, we will filter this later.)
- In the menu Visible columns: Select Path.

- Open the RenPlacer tool.
- For Source: Enter '*' and select Path.
- For Target: Enter '*' and select New name.
- Click Rename (in the Renplacer window!) All paths should be copied to file name now.

- Open the Prefs and go to Duplicates. (I know, an odd place for this...)
- Click Delete duplicates.
- Click Use to close the window.

- In the menu List: Select Export list as text.
- Select Exclude Old name.
- Select Filename with path.
- Click Save as...
- Done

Now you should have your list, if I understood your requiest correctly

Edit: There is of course also sorting functionality!

Few tools beat MultiRen when it comes to deal with lists of files and their directories. There may be a few steps to get what you want, but then you also get what you want.

Last edited by Deniil715 on 14-Feb-2011 at 08:56 PM.

_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  
AmigaOneProductions 
Re: Txt file of dir drawers. How ?
Posted on 14-Feb-2011 21:07:04
#11 ]
Cult Member
Joined: 11-Jan-2006
Posts: 717
From: Ingle land

How about

list #?/#?/#? dirs nohead quick LFORMAT %F > ram:text.txt
sort ram:text.txt ram:sorted.txt

Then remove the duplicates. I could knock up a CLI command to do that if nothing else exists and that's what you need.





_________________
Glass coffins, a success?
Remains to be seen.

 Status: Offline
Profile     Report this post  
Mrodfr 
Re: Txt file of dir drawers. How ?
Posted on 15-Feb-2011 17:12:45
#12 ]
Super Member
Joined: 28-Jan-2007
Posts: 1396
From: French

@AmigaOneProductions

This is strange but with your suggestions, not all the content of the drawer are on the text.txt file.

With your suggestion, all are on the same line (main drawer and sub-drawer and with the complete path.


@severin

Dir all dirs >ram:temp

this one is interesting because well formatted and give the good result but make all the sub-drawers. I just need the first sub-drawer level.

Also after using the sort command, the result isn't good at all.


Apparently, not possible to have the result I wish with DOS commands.


@sundown 

good program and make more or less the result I Need. Just need to remove all the amigaguide extra-parts on the result file.

This is the tool I need but the result must be a txt file.

Last edited by Mrodfr on 15-Feb-2011 at 05:35 PM.
Last edited by Mrodfr on 15-Feb-2011 at 05:24 PM.
Last edited by Mrodfr on 15-Feb-2011 at 05:21 PM.
Last edited by Mrodfr on 15-Feb-2011 at 05:18 PM.

_________________
BTW, what you have done for the amiga today ????

-A1200+Mediator+VooDoo3+060/50+96mo+SCSI-KIT
-SAM440EP-667mhz-on MapowerKC3000+AOS4.1

Amiga Docs Disks Preservation Project

 Status: Offline
Profile     Report this post  
marko 
Re: Txt file of dir drawers. How ?
Posted on 15-Feb-2011 18:41:24
#13 ]
Super Member
Joined: 17-Dec-2007
Posts: 1816
From: Gothenburg, THE front side of Sweden ;), (via Finland), EU

@Mrodfr

So to make this clear, if your dirs look like this:

-Iron maiden
+-piece of mind
+-the number of the beast
-Artist 2
+-Album 1
+-Album 2
-Artist 3
+-Album 1
+-Album 2

You want an output that looks like following, or?
Iron maiden
piece of mind
the number of the beast

Artist 2
Album 1
Album 2

Artist 3
Album 1
Album 2

_________________
AmigaOS 4.1 FEu2 on Sam440ep-flex 800MHz 1GB RAM
C128, A500+, A1200, A1200/40, AmigaForever 2008+09+16, 5 x86/x64 boxes
Still waiting (or dreaming) for the Amiga revolution...
m4rko.com/AMIGA

 Status: Offline
Profile     Report this post  
Mrodfr 
Re: Txt file of dir drawers. How ?
Posted on 15-Feb-2011 19:23:27
#14 ]
Super Member
Joined: 28-Jan-2007
Posts: 1396
From: French

@marko

Yes, this is what I wish.

one another example

drawers:

Iron maiden - discography

sub-drawers:
1980-iron maiden
1981-killers
1983-piece of mind
.......

Wished list:
Iron maiden - discography
1980-iron maiden
1981-killers
1983-piece of mind
.......


Of course, my datas are all on a same main drawers and lots of drawers inside

This is for creating a list of my datas with a simple scan with a command or a tool in a few seconds.

This tool or dos commands can be used with rom directory, movies, pictures, etc... For this case, I don't need the list of the files.

I'm trying to explain deeply in case someone would like to create this tool.

_________________
BTW, what you have done for the amiga today ????

-A1200+Mediator+VooDoo3+060/50+96mo+SCSI-KIT
-SAM440EP-667mhz-on MapowerKC3000+AOS4.1

Amiga Docs Disks Preservation Project

 Status: Offline
Profile     Report this post  
marko 
Re: Txt file of dir drawers. How ?
Posted on 15-Feb-2011 20:30:00
#15 ]
Super Member
Joined: 17-Dec-2007
Posts: 1816
From: Gothenburg, THE front side of Sweden ;), (via Finland), EU

@Mrodfr

Oki got it I *might* implement a LEVEL option (or something) for the ALL/SUBDIRS/RECURSIVE equivalent in DisplayFiles in *future*.

But that won't happen before I've implemented ALL and DIRS equivalent options, and a few other things on the TODO list already to fix...

But in any case I have put this on the SUGGESTIONS list for DF.

Last edited by marko on 15-Feb-2011 at 08:30 PM.

_________________
AmigaOS 4.1 FEu2 on Sam440ep-flex 800MHz 1GB RAM
C128, A500+, A1200, A1200/40, AmigaForever 2008+09+16, 5 x86/x64 boxes
Still waiting (or dreaming) for the Amiga revolution...
m4rko.com/AMIGA

 Status: Offline
Profile     Report this post  
Severin 
Re: Txt file of dir drawers. How ?
Posted on 15-Feb-2011 21:43:58
#16 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2740
From: Gloucestershire UK

@Mrodfr

Here's a little script written in an interpreted basic that should do what you want... I've included the basic interpreter. Check the readme for info.

http://www.am1ga.net/Dirscan.lha

_________________
OS4 Rocks
X1000 beta tester, Sam440 Flex (733)

Visit the Official OS4 Support Site for more help.

It may be that your sole purpose is to serve as a warning to others.

 Status: Offline
Profile     Report this post  
AlexC 
Re: Txt file of dir drawers. How ?
Posted on 15-Feb-2011 22:06:14
#17 ]
Super Member
Joined: 22-Jan-2004
Posts: 1300
From: City of Lost Angels, California.

@Mrodfr

If you grab BrowserII from Aminet, in the C drawer there's a "For" command which will do just what you need with the following syntax:

For #? type=dir do echo %s, list dirs %s quick nohead

That For command is really handy for countless other purposes too.

_________________
AlexC's free OS4 software collection

AmigaOne XE/X1000/X5000/UAE-PPC OS4 laptop/X-10 Home Automation

 Status: Offline
Profile     Report this post  
Deniil715 
Re: Txt file of dir drawers. How ?
Posted on 16-Feb-2011 13:11:41
#18 ]
Elite Member
Joined: 14-May-2003
Posts: 4237
From: Sweden

@Mrodfr

Quote:

Wished list:
Iron maiden - discography
1980-iron maiden
1981-killers
1983-piece of mind


Oh you wanted it that way??
Much easier with MultiRen.
I'm at work now so don't know it completely in my head but something like this:
- Load you files.
- Use the Sort tool to sort the list by path.

- Open the File Comment tool.
- Select Custom format.
- Pick something that is called "little path" from the drop-down list.
- Set target to New name.
- Click the button that will apply this (not one of the bold buttons!).

- Open prefs and remove duplicates as before.
- Select menu Export as text and save as described before.

Last edited by Deniil715 on 16-Feb-2011 at 01:13 PM.

_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  
Mrodfr 
Re: Txt file of dir drawers. How ?
Posted on 16-Feb-2011 17:17:17
#19 ]
Super Member
Joined: 28-Jan-2007
Posts: 1396
From: French

@Deniil715

Quote:
- Click the button that will apply this (not one of the bold buttons!).


I have followed your explanations and, on the quoted part, I have stopped because the remaining time is 8 mins with 100% CPU. I need a tool who do the thing in some seconds . Thank for the help.


@AlexC

strange but for work only for the main boot partition. If I open a shell and CD the drawer I would like to create the txt and launch your example, list isn't found (but a path and assign to C exist). Even if I copy list to ram: the same.

Btw, the list created withthe main boot partition show me that for list and take all the files, even the .info.

For my case, I need a list with the main drawers and just one level subdrawers.


@Severin

Installed and followed the little readme.

bx dirscan.bas DONNEES:dst/ >ram:text

Not working because the first line of text is created but after a basic error 5.


@marko 

Thanks for taking my explanation as a good idea to implement on df.

If you implement that My example need just all the main drawers and one level of sub-drawers only because the main drawer are the name of the band and the subdrawer the name of the album.

This is interesting to have a tool that allow to create easily list of music, movies, mame roms or whdload game by just checking the name of drawers and/or subdrawers or files.

Last edited by Mrodfr on 17-Feb-2011 at 06:46 AM.
Last edited by Mrodfr on 16-Feb-2011 at 05:38 PM.
Last edited by Mrodfr on 16-Feb-2011 at 05:31 PM.
Last edited by Mrodfr on 16-Feb-2011 at 05:28 PM.

_________________
BTW, what you have done for the amiga today ????

-A1200+Mediator+VooDoo3+060/50+96mo+SCSI-KIT
-SAM440EP-667mhz-on MapowerKC3000+AOS4.1

Amiga Docs Disks Preservation Project

 Status: Offline
Profile     Report this post  
Severin 
Re: Txt file of dir drawers. How ?
Posted on 16-Feb-2011 20:07:23
#20 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2740
From: Gloucestershire UK

@Mrodfr

try "bx dirscan.bas DONNEES:dst >ram:text" I put in an untested check for a trailing slash. another thing that might mess it up is if you have [ or ] in the drawer names.

_________________
OS4 Rocks
X1000 beta tester, Sam440 Flex (733)

Visit the Official OS4 Support Site for more help.

It may be that your sole purpose is to serve as a warning to others.

 Status: Offline
Profile     Report this post  
Goto page ( 1 | 2 Next Page )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle