Amiga.org
Amiga computer related discussion => Amiga Tutorials => Topic started 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
-
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
-
(http://amiga.nvg.org/moro/hummin_usb2.png)
-
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"
-
cant you just replace the list with info ?
-
cant you just replace the list with info ?
No it does not work - at least not with those arguments! :(
-
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.
-
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??
-
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:
-
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?
-
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!?