Subj : Re: how to detect cdrom? To : Steve From : Stan Brown Date : Sat Feb 09 2002 01:12 pm From: Stan.Brown@f3.n342.z1.cereal.mv.com (Stan Brown) Subject: Re: how to detect cdrom? From: brahms@mindspring.com (Stan Brown) E. S. (Steve) Fabian wrote in comp.os.msdos.4dos: >unset v >DO dn = %@ascii[d] to %@ascii[z] > set d=%@char[%dn]: > if %@ready[%d] EQ 0 iterate > if %@cdrom[%d] NE 0 iterate > if %@removable[%d] NE 0 iterate > if %@remote[%d] NE 0 iterate > switch %@label[%d] > case MS-RAMDRIVE .or. VIRTUALDISK > set v=%d > leave > endswitch >ENDDO >unset d dn > >At this point the variable v is either set to X: where X is a drive >labeled as virtual, or it is undefined. Interesting technique, Steve. I've saved it. -- Stan Brown, Oak Road Systems, Cortland County, New York, USA http://oakroadsystems.com My reply address is correct as is. The courtesy of providing a correct reply address is more important to me than time spent deleting spam. -- |Fidonet: Stan Brown 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) .