in reply to cdrom stuff...

cp -R /cdrom_mountpoint /target_dir

This is the easy shell way, but you could put it into a system() call.