Subj : How to detect RAM disks (Was: how to detect cdrom?) To : Klaus Meinhard From : Gerald Miller Date : Mon Feb 25 2002 12:26 pm From: Gerald.Miller@f512.n342.z1.cereal.mv.com (Gerald Miller) Subject: How to detect RAM disks (Was: how to detect cdrom?) Hello Klaus, Monday February 25 2002 08:46, Klaus Meinhard wrote to Jasen Betts: >> some common qualities: when you boot the drive will be empty. >> (except for a volume label) >> >> it'll have a higher drive letter than any physical disk it'll >> also be non-removable, writable (and have free space) unlike >> a cd-rom. KM> It will probably be the smallest drive in MBytes. KM> But the fact remains: you can make a lot of nonstringent tests. Any of KM> these facts _could_ apply to another (hard) disk. On the other hand KM> it's trivial to write a test for a known configuration. KM> The best bet for a general ramdisk test might be the existence of a KM> single FAT. But is it really general? The existence of a formattable KM> ramdisk may mean this one has 2 FATs. I have a small program named: MEM.EXE. When I type: mem /module ramdrive > MEM.OUT I get the following: === Cut Begin: MEM.OUT === RAMDRIVE is using the following memory: Segment Region Total Type ------- ------ ---------------- -------- 0B14A 1 1184 (1K) Installed Device=RAMDRIVE ---------------- Total Size: 1,184 (1K) === Cut End: MEM.OUT === Can the command: mem /module %module_name not provide the information that you are seeking? I can type: mem /c > E:\Tmp\MOD_NAME.DAT I can get a list of memory modules and with a little creative editing, I can get a list of module_names and should be able to use the edited list as input to a command: for %%mod in (at e:\tmp\mod_name.dat) do call mem /module %mod and I can see all the installed devices with other information... which brings me to the following point: Can you not take a previously created MOD_NAME.DAT file and use it as imput to test for other installed devices? 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) .