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

  1. last week

    Øjvind S

    Nov 5 Pre-Release Testers, Xojo Pro
    Edited last week

    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
      ListBox1.AddRow(Volume(i).Name)
    Next

    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. 7 days ago

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

  3. Øjvind S

    Nov 6 Pre-Release Testers, Xojo Pro
    Edited 7 days ago

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

  4. Christian S

    Nov 6 Pre-Release 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

    Nov 6 Pre-Release Testers, Xojo Pro
    Edited 7 days ago

    Thanks Christian – will do :-)

  6. 6 days ago

    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!