Getting volume names

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Getting volume names

Post by Allanon »

I was wondering if there is a way to get the available volumes in the host system, some time ago I was achieving this parsing the output generated by the "assign" command, of course this was useful only for amigaish systems, but now I need a multiplatform way to get this information.
Any hints?
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Getting volume names

Post by airsoftsoftwair »

It's not currently possible, but it might be worth adding. I'll add it to my list of ideas.
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: Getting volume names

Post by Allanon »

Great, thank you :)
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: Getting volume names

Post by Allanon »

Since we are talking about volumes it could be really cool if you could add an event that will be raised when a new volume is added or removed, so we could easily install events using the "Hollywood way":

Code: Select all

InstallEventHandler({ OnVolumeAdded = myfuncA, OnVolumeRemoved = myfuncB })
This could be really wonderful to handle devices like USB removable drives.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Getting volume names

Post by djrikki »

Yeah that would be a nice addition. :D
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Getting volume names

Post by airsoftsoftwair »

That's pretty difficult too implement. On AmigaOS it would be easy, but not on Linux :)
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: Getting volume names

Post by Allanon »

Andreas wrote:That's pretty difficult too implement. On AmigaOS it would be easy, but not on Linux :)
Ok, anyway once we have the volume list we can monitor them manually using an interval function to check if volumes are added or removed :)
Post Reply