PDA

View Full Version : List all volumes?


sim085
10-16-2009, 06:48 AM
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

JJ
10-16-2009, 06:56 AM
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

kolla
10-16-2009, 07:38 AM
http://amiga.nvg.org/moro/hummin_usb2.png

sim085
10-16-2009, 08:03 AM
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


execute myScript DH0:
execute myScript DH1:
etc...


In the list command I do as follows:


list >T: System: all dirs p=#? lformat="execute myScript %p%m"

JJ
10-16-2009, 08:55 AM
cant you just replace the list with info ?

sim085
10-16-2009, 12:30 PM
cant you just replace the list with info ?

No it does not work - at least not with those arguments! :(

meega
10-16-2009, 12:51 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

1.Work:> assign vols

lists the mounted volumes.


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

sim085
10-16-2009, 01:17 PM
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??

meega
10-16-2009, 01:29 PM
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:

sim085
10-17-2009, 05:24 AM
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?

sim085
10-17-2009, 05:49 PM
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!?