Subj : Re: how to detect cdrom? To : Jasen Betts From : Jasen Betts Date : Sun Feb 10 2002 02:32 pm From: Jasen.Betts@p42.f531.n640.z3.cereal.mv.com (Jasen Betts) Subject: Re: how to detect cdrom? 09-Feb-02 09:13:39, Jasen Betts wrote to Outsider Outsider wrote: 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 JB> what version of dos does that need to work? (it sure doesn't work here JB> with 6.22) but now it does work, weird... (dunno what I was doing wrong) hmm, you could change the first line to this and not have the pipe... CHOICE /N/CABCDEFGHIJKLMNOPQRSTUVWXYZ /T:%1,0 >NUL > I prefer the simple batch method to find the RAMdrive for two reasons. JB>what simple batch method? oops, found it. sorry. The only problem I can see is if you want to avoid writing to any of the hard disks... SEEN-BY: 10/3 18/500 105/360 106/1 2000 124/5025 132/152 140/1 201/505 SEEN-BY: 229/731 396/45 SEEN-BY: 106/2000 132/152 999 -- |Fidonet: Jasen Betts 3:640/531.42 | | 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) .