Would you mind providing us the 'big picture'? I don't see anything that relates to a CD-ROM drive.

Additionally, please take a look at the UDF Forum as a UDF for determining drives types, like CD-ROM drives, has laready been posted.

Also, please use the build-in COPY command instead of SHELLing out.

Finally, why do you copy the files to all driveletters?

And please do not use variables inside strings and refrain from using GOTOs.
_________________________
There are two types of vessels, submarines and targets.