Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline sim085Topic starter

  • Hero Member
  • *****
  • Join Date: Aug 2008
  • Posts: 958
    • Show only replies by sim085
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 jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4051
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show only replies by jj
Re: List all volumes?
« Reply #1 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
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline kolla

Re: List all volumes?
« Reply #2 on: October 16, 2009, 02:38:39 PM »
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline sim085Topic starter

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

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4051
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show only replies by jj
Re: List all volumes?
« Reply #4 on: October 16, 2009, 03:55:46 PM »
cant you just replace the list with info ?
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline sim085Topic starter

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

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 952
    • Show only replies by meega
Re: List all volumes?
« Reply #6 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.
:)
 

Offline sim085Topic starter

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

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 952
    • Show only replies by meega
Re: List all volumes?
« Reply #8 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:
:)
 

Offline sim085Topic starter

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