Martje 0 Junior Poster in Training

Hey all, how do i retrieve the names(string) of all the cd drives and usb drives available?
for example if my cd/usb is named "Pencil( D: )" i want the name "Pencil" to be retrieved.
Thanks in advanced.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.