Subj : Re: How to detect RAM disks (Was: how to detect cdrom?) To : Charles Dye From : Steve Date : Wed Feb 27 2002 05:07 am From: Steve@f3.n342.z1.cereal.mv.com (Steve) Subject: Re: How to detect RAM disks (Was: how to detect cdrom?) From: "E. S. (Steve) Fabian" Charles Dye wrote: > > Gerald.Miller@xspamp0.f512.n342.z1.fidonet.org wrote: > > >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? > > MEM picks up the name in the arena header, *usually* the base > part of the filename. For grins, you might try renaming DOSKEY.COM > as RAMDRIVE.COM and loading it. > Tried it (copied DOSKEY.COM into %temp\RAMDRIVE.COM). The report looks similar, but the critical line does NOT contain "Installed device=XYZ", it just contains "Program". NOTE: the sizes below are fake. RAMDRIVE is using the following memory: Segment Region Total Type ------- ------ ---------------- -------- 0B14A 1 1184 (1K) Program ---------------- Total Size: 1,184 (1K) Note that the "small program MEM.EXE" is one of the utilites included with MS-DOS. -- E. S. "Steve" Fabian ESFabian@BellAtlantic.net POB 1540, Cherry Hill, NJ 08034 Telephone: 856-354-1752 EMPIRE Consultants, Inc. Director, Software Development ------------------------------------------------------------------- -- |Fidonet: Steve 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) .