amiga.org
     
iconAll times are GMT -6. The time now is 07:27 AM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Amiga computer related discussion » Amiga Tutorials » List all volumes?

Amiga Tutorials In this forum, you'll find tutorials for AmigaOS and other forward-looking products.

Reply
 
Thread Tools Display Modes
Old 10-16-2009, 06:48 AM   #1
sim085
Cult Member
Points: 11,271, Level: 70 Points: 11,271, Level: 70 Points: 11,271, Level: 70
Activity: 1% Activity: 1% Activity: 1%
 
Join Date: Aug 2008
Location: Malta (Europe)
Posts: 915
Blog Entries: 1
Default List all volumes?

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
sim085 is offline   Reply With Quote
Old 10-16-2009, 06:56 AM   #2
JJ
Lifetime Member
Points: 19,023, Level: 87 Points: 19,023, Level: 87 Points: 19,023, Level: 87
Activity: 7% Activity: 7% Activity: 7%
 
JJ's Avatar
 
Join Date: Feb 2002
Location: Wales, UK
Posts: 3,584
Default Re: List all volumes?

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 2.7 user
JJ is offline   Reply With Quote
Old 10-16-2009, 07:38 AM   #3
kolla
Defender of the Faith
Points: 11,318, Level: 70 Points: 11,318, Level: 70 Points: 11,318, Level: 70
Activity: 2% Activity: 2% Activity: 2%
 
kolla's Avatar
 
Join Date: Oct 2002
Location: Trondheim, Norway
Posts: 1,698
Default Re: List all volumes?

__________________
-- kolla
kolla is offline   Reply With Quote
Old 10-16-2009, 08:03 AM   #4
sim085
Cult Member
Points: 11,271, Level: 70 Points: 11,271, Level: 70 Points: 11,271, Level: 70
Activity: 1% Activity: 1% Activity: 1%
 
Join Date: Aug 2008
Location: Malta (Europe)
Posts: 915
Blog Entries: 1
Default Re: List all volumes?

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:
execute myScript DH0:
execute myScript DH1:
etc...
In the list command I do as follows:

Code:
list >T: System: all dirs p=#? lformat="execute myScript %p%m"
sim085 is offline   Reply With Quote
Old 10-16-2009, 08:55 AM   #5
JJ
Lifetime Member
Points: 19,023, Level: 87 Points: 19,023, Level: 87 Points: 19,023, Level: 87
Activity: 7% Activity: 7% Activity: 7%
 
JJ's Avatar
 
Join Date: Feb 2002
Location: Wales, UK
Posts: 3,584
Default Re: List all volumes?

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 2.7 user
JJ is offline   Reply With Quote
Old 10-16-2009, 12:30 PM   #6
sim085
Cult Member
Points: 11,271, Level: 70 Points: 11,271, Level: 70 Points: 11,271, Level: 70
Activity: 1% Activity: 1% Activity: 1%
 
Join Date: Aug 2008
Location: Malta (Europe)
Posts: 915
Blog Entries: 1
Default Re: List all volumes?

Quote:
Originally Posted by JJ View Post
cant you just replace the list with info ?
No it does not work - at least not with those arguments!
sim085 is offline   Reply With Quote
Old 10-16-2009, 12:51 PM   #7
meega
Cult Member
Points: 5,080, Level: 45 Points: 5,080, Level: 45 Points: 5,080, Level: 45
Activity: 5% Activity: 5% Activity: 5%
 
meega's Avatar
 
Join Date: Jul 2006
Posts: 952
Default Re: List all volumes?

Quote:
Originally Posted by sim085 View Post
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.
__________________
meega is offline   Reply With Quote
Old 10-16-2009, 01:17 PM   #8
sim085
Cult Member
Points: 11,271, Level: 70 Points: 11,271, Level: 70 Points: 11,271, Level: 70
Activity: 1% Activity: 1% Activity: 1%
 
Join Date: Aug 2008
Location: Malta (Europe)
Posts: 915
Blog Entries: 1
Default Re: List all volumes?

Quote:
Originally Posted by meega View Post
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??
sim085 is offline   Reply With Quote
Old 10-16-2009, 01:29 PM   #9
meega
Cult Member
Points: 5,080, Level: 45 Points: 5,080, Level: 45 Points: 5,080, Level: 45
Activity: 5% Activity: 5% Activity: 5%
 
meega's Avatar
 
Join Date: Jul 2006
Posts: 952
Default Re: List all volumes?

Quote:
Originally Posted by sim085 View Post
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.
__________________
meega is offline   Reply With Quote
Old 10-17-2009, 05:24 AM   #10
sim085
Cult Member
Points: 11,271, Level: 70 Points: 11,271, Level: 70 Points: 11,271, Level: 70
Activity: 1% Activity: 1% Activity: 1%
 
Join Date: Aug 2008
Location: Malta (Europe)
Posts: 915
Blog Entries: 1
Default Re: List all volumes?

Quote:
Originally Posted by meega View Post
No, but you might have to be a little more inventive.
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 is offline   Reply With Quote
Old 10-17-2009, 05:49 PM   #11
sim085
Cult Member
Points: 11,271, Level: 70 Points: 11,271, Level: 70 Points: 11,271, Level: 70
Activity: 1% Activity: 1% Activity: 1%
 
Join Date: Aug 2008
Location: Malta (Europe)
Posts: 915
Blog Entries: 1
Default Re: List all volumes?

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!?
sim085 is offline   Reply With Quote
Reply

Bookmarks

Tags
volumes , list

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump