Solved

find the volume name of a cd-rom

Posted on 2002-04-17
2
169 Views
Last Modified: 2013-11-20
I'd like to get the volume name of a cd-rom. How can I realize that? Thank you...

Martin Bader
0
Comment
Question by:martinbader
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
ID: 6948297
Use 'GetVolumeInformation()' (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fsys_6wfi.asp), e.g.

char acVolName [ 255];
GetVolumeInformation ( <path to your CD-Drive>, acVolName, sizeof ( acVolName), NULL, NULL, NULL, NULL, 0);
0
 

Author Comment

by:martinbader
ID: 6949841
Thanks a lot for your immediate help.

So long, Martin Bader
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question