Amiga.org

Amiga computer related discussion => Amiga Tutorials => Topic started by: sim085 on October 16, 2009, 01:48:33 PM

Title: List all volumes?
Post by: sim085 on October 16, 2009, 01:48:33 PM
Hi,

Is it possible to list all volumes such as RAM: DH0: DH1: etc? I would like to use this together with the list command so that I can call a particular script for every volume.

Regards,
Sim085
Title: Re: List all volumes?
Post by: jj on October 16, 2009, 01:56:03 PM
assign > ram:volumes.txt
 
would give you all the assigns not just volumes
 
maybe you could do
 
mount > ram:volumes.txt
 
not 100% sure if you can use mount like this though
Title: Re: List all volumes?
Post by: kolla on October 16, 2009, 02:38:39 PM
(http://amiga.nvg.org/moro/hummin_usb2.png)
Title: Re: List all volumes?
Post by: sim085 on October 16, 2009, 03:03:14 PM
Those commands work fine for me as well. However I was hoping I could use them like the list command - that is building a script on the fly so that I can do the following for each of the volumes

Code: [Select]
execute myScript DH0:
execute myScript DH1:
etc...

In the list command I do as follows:

Code: [Select]
list >T: System: all dirs p=#? lformat="execute myScript %p%m"
Title: Re: List all volumes?
Post by: jj on October 16, 2009, 03:55:46 PM
cant you just replace the list with info ?
Title: Re: List all volumes?
Post by: sim085 on October 16, 2009, 07:30:35 PM
Quote from: JJ;526166
cant you just replace the list with info ?


No it does not work - at least not with those arguments! :(
Title: Re: List all volumes?
Post by: meega on October 16, 2009, 07:51:59 PM
Quote from: sim085;526156
Hi,

Is it possible to list all volumes such as RAM: DH0: DH1: etc? I would like to use this together with the list command so that I can call a particular script for every volume.

Regards,
Sim085

1.Work:> assign vols

lists the mounted volumes.


Ed: enter "assign ?" into a shell to see what else it can do.
Title: Re: List all volumes?
Post by: sim085 on October 16, 2009, 08:17:17 PM
Quote from: meega;526183
1.Work:> assign vols

lists the mounted volumes.

Ed: enter "assign ?" into a shell to see what else it can do.


Using the assign ? I can see that this does not take the lformat parameter!! So does this mean it is impossible to write a script containing all the volumes with extra text??
Title: Re: List all volumes?
Post by: meega on October 16, 2009, 08:29:40 PM
Quote from: sim085;526186
So does this mean it is impossible to write a script containing all the volumes with extra text??

No, but you might have to be a little more inventive. :hammer:
Title: Re: List all volumes?
Post by: sim085 on October 17, 2009, 12:24:16 PM
Quote from: meega;526187
No, but you might have to be a little more inventive. :hammer:
Hi again, I tried reading Using the AMIGA Workbench but did not find anything usefull to help me achieve this! I cannot understand how I can extract the volume information from the info command. The only way would be to have some sort of parser but did not find any either. Any suggestions?
Title: Re: List all volumes?
Post by: sim085 on October 18, 2009, 12:49:26 AM
Please - any help on this? I am also searching in the other scripts in S: to see if I can find anything that might help me out - however so far I had no luck :(

Or maybe this is not possible through scripting only!?