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?
Getting volume names
Getting volume names
----------------------------
[Allanon] Fabio Falcucci | GitHub for recent works | Support me on Patreon for Hollywood libraries | ☆★ All my links ★☆
[Allanon] Fabio Falcucci | GitHub for recent works | Support me on Patreon for Hollywood libraries | ☆★ All my links ★☆
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Getting volume names
It's not currently possible, but it might be worth adding. I'll add it to my list of ideas.
Re: Getting volume names
Great, thank you
----------------------------
[Allanon] Fabio Falcucci | GitHub for recent works | Support me on Patreon for Hollywood libraries | ☆★ All my links ★☆
[Allanon] Fabio Falcucci | GitHub for recent works | Support me on Patreon for Hollywood libraries | ☆★ All my links ★☆
Re: Getting volume names
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":
This could be really wonderful to handle devices like USB removable drives.
Code: Select all
InstallEventHandler({ OnVolumeAdded = myfuncA, OnVolumeRemoved = myfuncB })
----------------------------
[Allanon] Fabio Falcucci | GitHub for recent works | Support me on Patreon for Hollywood libraries | ☆★ All my links ★☆
[Allanon] Fabio Falcucci | GitHub for recent works | Support me on Patreon for Hollywood libraries | ☆★ All my links ★☆
Re: Getting volume names
Yeah that would be a nice addition.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
http://myevolve.wordpress.com
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Getting volume names
That's pretty difficult too implement. On AmigaOS it would be easy, but not on Linux
Re: Getting volume names
Ok, anyway once we have the volume list we can monitor them manually using an interval function to check if volumes are added or removedAndreas wrote:That's pretty difficult too implement. On AmigaOS it would be easy, but not on Linux
----------------------------
[Allanon] Fabio Falcucci | GitHub for recent works | Support me on Patreon for Hollywood libraries | ☆★ All my links ★☆
[Allanon] Fabio Falcucci | GitHub for recent works | Support me on Patreon for Hollywood libraries | ☆★ All my links ★☆