:::::::::::::::::::: WIN9X CODE :::::::::::::::::: @echo off if not [%1]==[] goto RUN echo You must supply a file spec WITHOUT the drive like \MYDOCU~1\TEST.TXT echo This script will search for that file on all drives and set the echo environment variable FILE to point to the actual location. goto DONE :RUN echo @echo off> temp1.bat echo for %%%%x 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 if exist %%%%x:%%1 echo set file=%%%%x:%%1>> temp1.bat ctty nul command /f /c temp1.bat %1> temp2.bat ctty con call temp2.bat del temp1.bat del temp2.bat :DONE ::::::::::::::::::: W2K/XP CODE ::::::::::::::::::: @echo off for %%a in (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 if exist %%a:\data\ArcView\Defaults\esri_1.ttf set CDROM=%%a echo Your CDROM is %CDROM%