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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.