Open cdrom device on windows

M

manux

Hi,

someone knows if there is a way to open the cdrom device on windows
with perl?
I found just about opening Serial ports (open P,"+>COM1") but nothing
about cdrom.
I tried to open /Devices/CdRom0, \\.\CdRom0 but it doesn't work.

Thanks

manux

P.S. what I'd like to do is to burn an iso image on a cd-r and verify
md5sum (on linux I would open /dev/cdrom)
 
K

Kevin Collins

Hi,

someone knows if there is a way to open the cdrom device on windows
with perl?
I found just about opening Serial ports (open P,"+>COM1") but nothing
about cdrom.
I tried to open /Devices/CdRom0, \\.\CdRom0 but it doesn't work.

Thanks

manux

P.S. what I'd like to do is to burn an iso image on a cd-r and verify
md5sum (on linux I would open /dev/cdrom)

Assming your CD-ROM's drive letter is E:, you would use:

open(CDR, "E:/") || die "can't open E: drive: $!";

Of course, this is to open the PATH at the root of the CD-ROM, not the actual
device...

Kevin
 

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
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top