thanks for your support but its not working @echo off&Mode 55,3&Color f2&Title Script By Yzöwl for %%a in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do ( fsutil fsinfo drivetype %%a:|find "CD-ROM">nul 2>&1&&echo Your CD-ROM drive^(s^) -^> %%a:\ ) although i applyed your code its not set %cdrom% to cdrom drive can you check this code.. and also if is it possible can you explain this codes meaning. i have to learn thanks a lot.