How to copy files from cd rom to hdd using batch file



I have Some files on cd rom that files i want to copy on hdd
also that files without knowing the drive letter of cd rom i want to copy them on HDD using a batch files
Pls Help


Why batch files?

That just slows down the whole process.


As far as I’m aware of, there is no simple way of automatically finding out the CD/DVD drive letters in a command prompt.

The closest idea I can think of is to determine which drive letters have a read-only listing, but again this will not work properly, as other drives will also show up as read-only, e.g. OS drive root folder without an administrator command prompt.