Subj : Re: how to detect cdrom? To : Steve From : Bill Date : Fri Feb 08 2002 08:46 pm From: Bill@f3.n342.z1.cereal.mv.com (Bill) Subject: Re: how to detect cdrom? From: Bill E. S. (Steve) Fabian wrote: > > CBFalconer wrote: > > > > "E. S. (Steve) Fabian" wrote: > > > > > > > What FINDRAMD.EXE does (and the Win98 version does work under MS-DOS > > > 6.22) is locate the alphabetically first drive with label "MS-RAMDRIVE", > > > and returns a corresponding errorlevel. labeled as virtual, or it is undefined. > > > > Sounds like you pulled it apart looking for undocumented system > > calls. I'll take your word for it. > > > No, I just "sneakernet"-ted it to my DOS6 machine, which already has 6 > partitions on two drives, a CDR and a CD-EROM, and a virtual disk (j:). > When I changed labels on J:, it did not detect it; when I changed labels > on d: to "MS-RAMDRIVE", that's what it detected. In fact if you had two > virtual disks, it would stop at the drive with the earlier letter. I am > not sure that MS' ramdrive.sys supports multiple virtual disks. Any > drive letter chnages caused by SUBST are honored by FINDRAMD (and also > by my batch code). It's like that with drvspace /li as well. If you change the label of the RAM drive, it is reported as a local hard drive. -- Bill -- |Fidonet: Bill 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) .