I need a way to list available drive names, preferably with Java v9.0.4
example
I found this code, which only lists the available drives on PC, but not their names. How to list names also?
I need a solution only for PC in this case. Is there a way to get the drive names from the example below?
example
C:\ Maindrive_C
D:\ Studio
E:\ My Appz
I found this code, which only lists the available drives on PC, but not their names. How to list names also?
I need a solution only for PC in this case. Is there a way to get the drive names from the example below?
B4X:
For Each drive As String In ListRoots
Log(drive)
Next
Sub ListRoots As List
Dim jo As JavaObject
Dim o() As Object = jo.InitializeStatic("java.io.File").RunMethod("listRoots", Null)
Return o
End Sub
Last edited: