Subj : Re: how to detect cdrom? To : Jasen.Betts@xspamp42.f531.n640.z3.f From : Outsider Date : Sun Feb 10 2002 12:00 pm From: Outsider@f3.n342.z1.cereal.mv.com (Outsider) Subject: Re: how to detect cdrom? From: Outsider Jasen.Betts@xspamp42.f531.n640.z3.fidonet.org wrote: > > Hi Outsider. > > 08-Feb-02 08:03:56, Outsider wrote to Outsider > > O> ECHO %1|CHOICE /N/CABCDEFGHIJKLMNOPQRSTUVWXYZ >NUL > O> 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 > O> errorlevel H%%d set ramdrive=%%d > > what version of dos does that need to work? (it sure doesn't work here with > 6.22) Any linewrapping was done intentionally by your newsreader. Try this. :: inpdrvlt.bat @ECHO off ECHO. ECHO. please input drive letter SET drv= CHOICE/Cabcdefghijklmnopqrstuvwxyz FOR %%d in (A B C D E F G H I J K M N O P Q R S T U V W X Y Z) do IF errorLevel H%%d Set drv=%%d ECHO. %drv% :: -- 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) .