Question 1:
This code checks if the driveletter in variable %CDROM% exists.
(If a CD is in the drive or not.)
I don't think it is possible to check the device with batch in the windows world.
The solution is a bit unfortunate.
hope it helps
uli
snip ----------
set CDROM=d
for %%x in (%CDROM%) do (
if exist %%x:\NUL (echo CDROM - Drive is active %%x: ) else (echo CDROM- Drive is not active)
)
set CDROM=
---------- snap