if in your CD, you have xxxx.exe file, you tell to the program : that the file name to search is this xxxx.exe for ex.: in your CD-rom root : I have : d:\readme.txt d:\setup.Exe d:\I386\ TO find CDROM drive letter,it generates a little command that is FOR %%i IN (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 %%i:\cd.txt SET CDROM=%%i: so, instead of placing cd.txt into the CDROM (path \), you choose a file that is already exist. For the example above, I see that readme.txt exists. So in our editbox, I write : readme.txt And in the generated code, you will se the next command: FOR %%i IN (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 %%i:\readme.txt SET CDROM=%%i: