Solved

find the volume name of a cd-rom

Posted on 2002-04-17
2
168 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

733 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