Blueforcer Well-Known Member Licensed User Longtime User Nov 7, 2018 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Nov 7, 2018 #2 On Windows? This command finds the USB drive: B4X: wmic VOLUME WHERE (DriveLetter^>"" AND DriveType=2) GET DriveLetter /VALUE https://stackoverflow.com/questions/27303297/batch-list-usb-drives-then-copy-content You should call it with jShell. Upvote 0
On Windows? This command finds the USB drive: B4X: wmic VOLUME WHERE (DriveLetter^>"" AND DriveType=2) GET DriveLetter /VALUE https://stackoverflow.com/questions/27303297/batch-list-usb-drives-then-copy-content You should call it with jShell.
Blueforcer Well-Known Member Licensed User Longtime User Nov 7, 2018 #3 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: Nov 7, 2018 Upvote 0
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?
Blueforcer Well-Known Member Licensed User Longtime User Nov 7, 2018 #4 got it with B4X: shl.Initialize("shl", "wmic",Array("logicaldisk","where","drivetype=2","get","deviceID",",volumename")) This also gives me the name Upvote 0
got it with B4X: shl.Initialize("shl", "wmic",Array("logicaldisk","where","drivetype=2","get","deviceID",",volumename")) This also gives me the name