Subj : Re: how to detect cdrom? To : Outsider From : Outsider Date : Fri Feb 08 2002 08:03 am From: Outsider@f3.n342.z1.cereal.mv.com (Outsider) Subject: Re: how to detect cdrom? From: Outsider Outsider wrote: > > Brian.Iglesias@xspamp0.f321.n751.z6.fidonet.org wrote: ....snipped > > can this be done without using external utilities? > > Yes. It can even be done without 4DOS . > Always assign drive letter Z to your CD-ROM drive. If you already > know it is Z, there is no need to find it. Makes things a lot easier. > Below is a suggested outline, make whatever changes you require. > > [Menu] > menuitem=Windows > menuitem=DOS > menudefault=default,10 > menucolor=15,3 > numlock=off > > [common] ....snipped You can do like this too _IF_ findramd.exe is working. Any line wrapping is done intentionally by your newsreader. :: setramd.bat @ECHO off SET ramdrive= FINDRAMD.EXE FOR %%d 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 errorlevel H%%d set ramdrive=%%d ECHO ramdrive=%ramdrive% IF "%1"=="" GOTO end SET ramdrive= :or ECHO %1|CHOICE /N/CABCDEFGHIJKLMNOPQRSTUVWXYZ >NUL FOR %%d 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 errorlevel H%%d set ramdrive=%%d ECHO ramdrive=%ramdrive% :end ----------------- I prefer the simple batch method to find the RAMdrive for two reasons. 1) It occupies only one cluster on a floppy, findramd.exe, at 6.855 bytes, occupies 14. 2) One less executable to be concerned about. -- MS-DOS 6.22, Windows for Workgroups 3.11, Netscape Communicator 4.08 -- |Fidonet: Outsider 1:342/3 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .