Page 1 of 1

Getting volume names

Posted: Tue Feb 28, 2012 10:24 pm
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?

Re: Getting volume names

Posted: Fri Mar 02, 2012 12:59 pm
by airsoftsoftwair
It's not currently possible, but it might be worth adding. I'll add it to my list of ideas.

Re: Getting volume names

Posted: Fri Mar 02, 2012 3:22 pm
by Allanon
Great, thank you :)

Re: Getting volume names

Posted: Fri Mar 02, 2012 3:27 pm
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.

Re: Getting volume names

Posted: Fri Mar 02, 2012 4:59 pm
by djrikki
Yeah that would be a nice addition. :D

Re: Getting volume names

Posted: Sat Mar 03, 2012 12:14 pm
by airsoftsoftwair
That's pretty difficult too implement. On AmigaOS it would be easy, but not on Linux :)

Re: Getting volume names

Posted: Sat Mar 03, 2012 12:18 pm
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 :)