CD-R or CD-RW ?

K

kielhd

Hi NG,

is there a way for Perl to find out, if a CD is a CD-R or a CD-RW?

TIA,
Henning
 
B

Brian McCauley

kielhd said:
is there a way for Perl to find out, if a CD is a CD-R or a CD-RW?

If your operating system provides and interface that makes this
information available to applications then no doubt you can get at it
with Perl.

For example on Unix-like OSs there's probably an IOCTL you can use on
the device file correspoding to the CD.
 
T

Tassilo v. Parseval

Also sprach Brian McCauley:
If your operating system provides and interface that makes this
information available to applications then no doubt you can get at it
with Perl.

For example on Unix-like OSs there's probably an IOCTL you can use on
the device file correspoding to the CD.

Is the OP talking about the disc or the drive? Linux (and therefore
Solaris probably too) has the CDROM_GET_CAPABILITY ioctl which, among
other things, tells whether a drive can write CD-Rs, CD-RWs, DVD-Rs
and/or DVD-RWs. But I know of no ioctl that would tell me whether an
inserted disc is CD-R or CD-RW.

Tassilo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,773
Latest member
Kaybee

Latest Threads

Top