473,396 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Reading the label on a CD

Is there an easy way to read the volume label name on a CD?

Is there a good way to test for the presence of a CD in the drive?
Any help is greatly appreciated.
Nov 17 '05 #1
3 1296
Hi Greg,

You might try the GetVolumeInformation API through P/Invoke.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Greg Smith" <gj*@umn.edu> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Is there an easy way to read the volume label name on a CD?

Is there a good way to test for the presence of a CD in the drive?
Any help is greatly appreciated.


Nov 17 '05 #2
Buzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz ................

Right over my head. Could you point me to an example?
Thanks.

"Dmytro Lapshyn [MVP]" <x-****@no-spam-please.hotpop.com> wrote in message
news:OB**************@TK2MSFTNGP09.phx.gbl...
Hi Greg,

You might try the GetVolumeInformation API through P/Invoke.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Greg Smith" <gj*@umn.edu> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Is there an easy way to read the volume label name on a CD?

Is there a good way to test for the presence of a CD in the drive?
Any help is greatly appreciated.

Nov 17 '05 #3
Greg,

This link should help you (watch for line wrap):

http://www.pinvoke.net/default.aspx/...formation.html

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Greg Smith" <gj*@umn.edu> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Buzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz ................

Right over my head. Could you point me to an example?
Thanks.

"Dmytro Lapshyn [MVP]" <x-****@no-spam-please.hotpop.com> wrote in message
news:OB**************@TK2MSFTNGP09.phx.gbl...
Hi Greg,

You might try the GetVolumeInformation API through P/Invoke.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Greg Smith" <gj*@umn.edu> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Is there an easy way to read the volume label name on a CD?

Is there a good way to test for the presence of a CD in the drive?
Any help is greatly appreciated.


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mateo | last post by:
Hi! I have labels on my page (some are web forms controls, and some are plain HTML labels), and I need Mozilla compatibile way for reading label value. For example, in IE I can use this:...
1
by: Andrew Banks | last post by:
I've got the following code in a control and the reader doesn't seem to be working. The connection details are correct. Any ideas? I am reading data from this database to log the user and a lot...
0
by: Kathryn | last post by:
Hello, I am trying to read an xml file into a web page via vb.net. I am current using an rss format and reading it directly into a DataSet with the following command:...
4
by: starwiz | last post by:
I'm trying to use the DataGrid's editing with a DropDownList. I've tried using every code sample I've seen and none of them seem to be able to solve my problem. When I call...
1
by: David | last post by:
Hi, This one appears a little strange to me. Here is the scenario. I load a datalist the first time a page is run. The page has a !IsPostback and the datalist gets loaded at this point. I...
3
by: Zeke Zinzul | last post by:
Hi Guys & Geeks, What's the most elegant way of dealing with binary data and structures? Say I have this (which I actually do, a woo-hoo): struct Struct_IconHeader { byte width; byte...
0
by: Mike Collins | last post by:
I someone can please help, I am about at an end in trying to figure this out. I am adding some dynamic controls to my page (I found out that I was supposed to be doing that in the oninit event,...
1
by: Andrea Gavana | last post by:
Hello NG, that may sound a silly question, but I didn't find anything really clear about the issue of reading unformatted big endian files with Python. What I was doing till now, was using...
0
by: Pemmavasu | last post by:
Hi All, I am not able to read the values from Gridview TemplateField Controls. basically I craeted a gridview with four colums and finally i added a Template field to it. The templatefield...
8
by: LayneMitch via WebmasterKB.com | last post by:
I'm supposed to develop a page that asks info as form values and when you hit "submit" it takes you to a page that reads the values you entered into the first page and displays those values in a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.