Subj : Re: how to detect cdrom? To : Brian.Iglesias@xspamp0.f321.n751.z6 From : Charles Dye Date : Fri Feb 08 2002 04:44 am From: Charles.Dye@f3.n342.z1.cereal.mv.com (Charles Dye) Subject: Re: how to detect cdrom? From: raster@highfiber.com (Charles Dye) On 8 Feb 2002 01:17:00 GMT, Brian.Iglesias@xspamp0.f321.n751.z6.fidonet.org wrote: >hello everyone. > >i am looking for a generic batch routine that will detect the cdrom >and ramdrive. this is for a pcdos 2000 bootdisk. previously, >i was using msdos 6.22 with 'findramd.exe' (with setramd.bat) >from the win98se ebd, but when i moved it to pcdos it didn't work. > >i traced it and 'xmsdsk.exe' loads fine, but 'findramd.exe' does not >return the errorlevel like before. i have the feeling it doesn't like >non-MS dos'es. If you're using XMSDSK, there's no need to 'find' the RAMdisk. You simply specify the drive letter you want when you load it. Saving that value for later use in batch files is trivial. set ram=R: xmsdsk 8192 %ram% /y md %ram%\temp set temp=%ram%\temp set tmp=%ram%\temp rem And so on.... The above should work with COMMAND.COM as well as 4DOS. If you want some drive letter other than R:, you only need to change the one line. -- Charles Dye raster@highfiber.com -- |Fidonet: Charles Dye 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) .