Subj : How to detect RAM disks (Was: how to detect cdrom?) To : Jasen Betts From : Gerald Miller Date : Thu Feb 28 2002 07:34 am From: Gerald.Miller@f512.n342.z1.cereal.mv.com (Gerald Miller) Subject: How to detect RAM disks (Was: how to detect cdrom?) Hello Jasen, Wednesday February 27 2002 06:39, Jasen Betts wrote to Gerald Miller: GM>> mem /module ramdrive > MEM.OUT GM>> Can the command: mem /module %module_name not provide the GM>> information that you are seeking? JB> you neeed to know the name of ramdrive module... JB> (it could be vdisk intead of ramdrive etc....) JB> also it doesn't tell what drive letter... GM>> I can type: JB> mem /c >> E:\Tmp\MOD_NAME.DAT GM>> I can get a list of memory modules and with a little creative GM>> editing, I can get a list of module_names and should be able to GM>> use the edited list as input to a command: GM>> for %%mod in (at e:\tmp\mod_name.dat) do call mem /module GM>> %mod GM>> and I can see all the installed devices with other information... GM>> which brings me to the following point: GM>> Can you not take a previously created MOD_NAME.DAT file and use GM>> it as imput to test for other installed devices? JB> yeah... but it still won't give the drive letter. JB> (you need mem /d) JB> and it also relies on knowing the name of the ramdisk program. How is "MEM /D" able to determine the name of the ramdisk program? First - Determine if a device is installed. Second - Determine the name of the device (should be able to deduce the manufacturer / author / version) When you know a device is installed and you know the name, then you should be able to conduct the test for a drive letter. From what I've been able to determine, you are likely to get "false positive" results if you test for the presence of a label and I was trying to bring that fact to attention. If someone can determine how MEM /D hooks into the memory to determine the name of the ramdisk program (and the drive letter), then you /_may_/ have the basis for the utility. Cheers ... Gerald -- |Fidonet: Gerald Miller 1:342/512 | | 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) .