Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!psuvm!cunyvm!ndsuvm1!plains!harlow From: harlow@plains.UUCP (Jay B. Harlow) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: can you tell if a logical drive is a ramdisk Message-ID: <4049@plains.UUCP> Date: 7 Apr 90 19:13:08 GMT References: <1990Mar31.034515.7622@rducky.uucp> <7442.261cbd19@dit.ie> Reply-To: harlow@plains.UUCP (Jay B. Harlow) Organization: The Site From Hell, NDSU Fargo ND Lines: 31 In article <7442.261cbd19@dit.ie> alawlor@dit.ie (Aengus Lawlor) writes: >In article <1990Mar31.034515.7622@rducky.uucp>, jrp@rducky.uucp (JIM PICKERING) writes: >> I am writing an application that needs to determine is a logical drive >> (E for example) is a ramdisk. Is there any way? Perhaps there is some >> information in the BPD obtained through an ioctl() call? >Can you get the date associated with the label on the drive? >If it's todays date, it's probably a ram drive. > >(Not perfect, but reasonably do-able) >-- Hello, Sorry This is NOT a good or Doable idea, My ramdisk, (MS-RAMDRIVE) returns a date on the ramdisk of Jun(?) of 1985, which is 5 years ago. Which I think is the date the thing was complied or the date the programmer chose 'at random' to stick on the label image in his source code. This is Much simpler way of doing it then creating the image when then driver is ran. ON 3.3 and higher there are a couple funcky IOCTL functions that may shead some light (don't remember the numbers but someone posted it ). and I am ( like get device parameters, it is invalid function on my ramdrive ) rather certain VDISK has still another date on it, and so on..... Actually if knowing if you disk is real or virtual maybe MS should provide support (or document) how to do this on next Version of DOS! Jay -- Jay B. Harlow uunet!plains!harlow (UUCP) harlow@plains (Bitnet) Of course the above is personal opinion, And has no bearing on reality...