I want to list all the available drive letters of my pc.
There are java method :
java.io.File.listRoots() , and
getRootDirectories()
but how to I put it to b4j code ?
Dim Obj As JavaObject
Obj.InitializeStatic("java.io.File")
Obj = Obj.RunMethod("listRoots",Null)
Dim Files() As Object
Files = Obj
For i = 0 To Files.Length - 1
Log(Files(i))
Next