B4J Question detect USB mass storage

Blueforcer

Well-Known Member
Licensed User
Longtime User
My App needs to copy some files automatically to an USB mass storage device.
How can i list all USB mass storage and path?

thanks
 

Blueforcer

Well-Known Member
Licensed User
Longtime User
Exactly what i need, thanks!
Since im using jShell the first time, i think a have a lack of knowledge.

B4X:
shl.Initialize("shl", "cmd", Array As String("wmic VOLUME WHERE (DriveLetter^>"" AND DriveType=2) GET DriveLetter /VALUE"))
Doesnt work. what is the correct method to call this?
 
Last edited:
Upvote 0

Blueforcer

Well-Known Member
Licensed User
Longtime User
got it with
B4X:
shl.Initialize("shl", "wmic",Array("logicaldisk","where","drivetype=2","get","deviceID",",volumename"))
This also gives me the name
 
Upvote 0
Top