Hi,
in a code like this, how to check whether a volume is removable (like usb pen drive)? (OS X only)
Thanks!
For i As Integer = 0 to VolumeCount-1
LB.AddRow Volume(i).Name
Next
Hi,
in a code like this, how to check whether a volume is removable (like usb pen drive)? (OS X only)
Thanks!
For i As Integer = 0 to VolumeCount-1
LB.AddRow Volume(i).Name
Next
You need the diskutil
Something like this
Get the list of volumes
diskutil -list
Then get the device IDENTIFIER and pass it as bellow
ioanniss-imac:~ ioannis$ diskutil info /dev/disk0 | grep “Removable Media” //<<< My SSD Disk
Removable Media: No
ioanniss-imac:~ ioannis$
[/code]
Thank you!
I managed to solve following your suggestion.