locked
Friendly name of the removable disk RRS feed

  • Question

  • Hi all,

    i have a windows form application in c++. I wanted to know how to get the friendly name of the removable disk connected in windows.

    i retrieve the drive information using the following api

    array<DriveInfo^>^ drive = DriveInfo::GetDrives();

    And if drive is removable, list the drive. But its listed as (G:\ , H:\) etc.

    How can i get the friendly name of the drive?

    Regards,

    Shwetha

    Monday, December 19, 2016 10:02 AM

Answers

  • Hmm. The volume label is just for this?

    Also, if there is the autorun.inf file on the drive, its "label" statement may be useful.


    • Edited by Pavel A Monday, December 19, 2016 10:41 AM
    • Marked as answer by Shwetha s Monday, December 19, 2016 10:54 AM
    Monday, December 19, 2016 10:27 AM

All replies

  • Hmm. The volume label is just for this?

    Also, if there is the autorun.inf file on the drive, its "label" statement may be useful.


    • Edited by Pavel A Monday, December 19, 2016 10:41 AM
    • Marked as answer by Shwetha s Monday, December 19, 2016 10:54 AM
    Monday, December 19, 2016 10:27 AM
  • Thanks Pavel for the useful info.
    Monday, December 19, 2016 10:54 AM