Path: utzoo!attcan!utgpu!watmath!watdragon!rose!trgauchat From: trgauchat@rose.waterloo.edu (Terry Gauchat) Newsgroups: comp.sys.ibm.pc Subject: Re: Problems finding out how many drives a system has. Keywords: MSDOS, BUGS Message-ID: <13987@watdragon.waterloo.edu> Date: 20 May 89 16:32:54 GMT References: <188@stpl.UUCP> Sender: daemon@watdragon.waterloo.edu Reply-To: trgauchat@rose.waterloo.edu (Terry Gauchat) Organization: U. of Waterloo, Ontario Lines: 20 In article <188@stpl.UUCP> peterc@stpl.UUCP (Peter CAMILLERI) writes: >Hello Netland! > > 2) Set the Default Drive to the number obtained above using > DOS FN 14, which as a side effect returns the number of Drives! > >Neat Huh? Too bad it does'nt work, { In spite of the fact that the manual >says it should :-} It always returns 5 (Five) as the number of drives >despite the fact that I have only 3 (Three) A & B are floppies, and C >a hard disk. { I am running Compaq DOS 3.2 if it matters. } I believe that you are getting "5" because the environment variable LASTDRIVE is set to "e" (I believe this is the default). Try putting LASTDRIVE=C in your CONFIG.SYS . I know this isn't the best solution, but it may explain the bug. ...Terry MicroCosmic Computer Services