View Full Version : path to cd/dvd player

July 3rd, 2009, 05:39 PM

I am writing a program to list the contents of a cd/dvd. I am not sure how to find the path to the player to access the contents of the disk.

July 4th, 2009, 05:52 AM
Wouldn't you just go like if it was php

$location = '/media/cdrom';
$open = opendir($location, r);
$read = readdir($open);
print $read;

something like that, not sure what language you doing it in, but it would be similar. that would output everytinhg on the cd.

Isn't it always /media/cdrom? Or dvdrom perhaps?