How to get names of USB card readers and check if there are cards present.

  1. 7 months ago
    Edited 7 months ago

    I'm trying to create a video ingest station.
    We have a setup with an iMac with multiple card readers attached.
    I want to put a label (physically) on the various slots and in my application present the user with a listbox with names of devices with cards present.

    This is what I have now:

    Dim vols As Integer
    vols = VolumeCount - 1
    For i As Integer = 0 To vols

    If you mount two SD cards in two slots (formatted in a GoPro camera) they will share the name "NO NAME" and they will be hard to distinguish.

    How can I make the mounted cards reflect the physical labels?

  2. In Terminal, try to parse "diskutil list" and/or "diskutil info"

  3. Edited 7 months ago

    Thanks @Detlef K
    I'm shaky with Terminal (newbie) – but it looks promising

  4. Christian S

    6 Nov 2019 Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    This is on Mac?

    you could check the DiskArbitration classes in MBS Xojo Plugins .

  5. Øjvind S

    6 Nov 2019 Testers, Xojo Pro
    Edited 7 months ago

    Thanks Christian – will do :-)

  6. In case of Terminal, new thread and/or shell, with sending the commands given above.

    Textvariable= s.result, then parse it with string modifications (left, mid, right).

    I see myself as an advanced beginner. ;)

or Sign Up to reply!