>> This is a question originally sent on
>> a spanish list about BASIC, but
>> is more a DOS question, so I translate here...
>>
>> Writing a DOS app on qbasic or quickbasic to check the disk
>> units on
>> the PC (floppy, HD, CD...)  Can check to first CD
>> unit, later if exist
>> a ramdisk how to check if the unit is a real disk or a ram
>> virtual
>> disk?
>
> i use FINDRAMD.EXE from this site:
>
> http://www-user.tu-chemnitz.de/~heha/hs_freeware/freew.html
>
> source code included.

It's rather unreliable because it only checks whether there's just one FAT  
on the drive. However, that _is_ the most reliable method of detecting a  
RAM disk because there's nothing else different RAM disks have in common.  
Expect that some non-RAM disks might also be detected this way. Obtaining  
the drive letter from the RAM disk's driver or asking the user is the only  
certain way.

Regards,
Christian

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to