How to get list of currently connected ShareFS drives?
Sergey Lentsov (8268) 63 posts |
Hello, Me needs to get the list of currently connected ShareFS drives. How to do it? I tried to canonicalize ShareFS::0.$, … ShareFS::7.$ drives with “OS_FScontrol 37 Canonicalise path” as advised by David J. Ruck in this post https://www.riscosopen.org/forum/forums/11/topics/16818 but RiscOS display a message “Please insert or make avaliable shared disc ‘0’” In general me needs to get a list of all currently connected drives but I not found a good way how to get them. Currently I used workaround and try to canonicalize all drives using hardcoded FS list My code look like this:
|
Andy Vawer (5817) 28 posts |
Have you tried looking at Freeway? http://www.riscos.com/support/developers/freeway/index.html |
Steve Drain (222) 1620 posts |
For a simple solution you might try enumerating files of type &BDA (Disc) in the Resources:$.Discs directory. This includes unmounted drives. |