Welcome, Guest. Please login or register.

Author Topic: List all volumes?  (Read 3904 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline sim085Topic starter

  • Hero Member
  • *****
  • Join Date: Aug 2008
  • Posts: 958
    • Show all replies
List all volumes?
« 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
 

Offline sim085Topic starter

  • Hero Member
  • *****
  • Join Date: Aug 2008
  • Posts: 958
    • Show all replies
Re: List all volumes?
« Reply #1 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"
 

Offline sim085Topic starter

  • Hero Member
  • *****
  • Join Date: Aug 2008
  • Posts: 958
    • Show all replies
Re: List all volumes?
« Reply #2 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! :(
 

Offline sim085Topic starter

  • Hero Member
  • *****
  • Join Date: Aug 2008
  • Posts: 958
    • Show all replies
Re: List all volumes?
« Reply #3 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??
 

Offline sim085Topic starter

  • Hero Member
  • *****
  • Join Date: Aug 2008
  • Posts: 958
    • Show all replies
Re: List all volumes?
« Reply #4 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?
 

Offline sim085Topic starter

  • Hero Member
  • *****
  • Join Date: Aug 2008
  • Posts: 958
    • Show all replies
Re: List all volumes?
« Reply #5 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!?