graeme@abekrd.co.uk (Graeme Griffiths) (03/28/91)
Can anyone help ? Am I being thick ? I am writing a users front-end for a company related package. In this package I'm using windows and stuff to give a nice (idiot proof) effect. The program accesses the disks at one time or another and hence produces DOS error messages if no disk is in etc.... These system errors don't access my windows and make rather a mess of the screen and I am trying to bypass them using BIOS calls. The idea is to dis-allow disk access until the program is sure that no problems will occur. I sort of expected BIOS (or even DOS) to have some way of checking the disk without accessing it i.e no error message just an internal return value. My question is this , is there a way of doing this. If not (which I am coming to expect) then I was going to use a disk reset BIOS call (int 13h function 00h) as a sort of check ,but this requires the driver number which changes depending on whether the drive is a hard drive or not. In this case is there an way to convert drive name (A,B,Cetc) into drive number (0,1,2 or 80h 81h 82h etc). Any help would be much appreciated (Email prefered). Thanks. ------------------------------------------------------------------------------ |From: Graeme Griffiths | "I want to be a drunk, | |Abekas Video Systems,12 Portman Rd,| but I'm just not good enough!" | |Reading,Berks,ENGLAND. | Tyla (Dogs D'Amour) | |(0734)585421 x2248 | | ------------------------------------------------------------------------------