Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!munnari.oz.au!uniwa!cc.curtin.edu.au!cutmcvax!campbell From: campbell@cutmcvax.cs.curtin.edu.au (Trevor George Campbell CC361) Newsgroups: comp.os.msdos.programmer Subject: Re: Insert disk message... Message-ID: Date: 7 Jun 91 09:25:03 GMT References: <$d4Hl83l@cs.psu.edu> Sender: news@cutmcvax.cs.curtin.edu.au (Usenet News System) Distribution: comp Organization: Curtin University of Technology, Computing Science Lines: 32 Nntp-Posting-Host: cutmcvax.cs.curtin.edu.au melling@cs.psu.edu (Michael D Mellinger) writes: >Is there a way to avoid the "Insert disk in B drive message..." when I >change the A drive to B from within my MS C(6.0) program on a single >floppy system? Right now it always prompts the user to insert a disk >into drive B and to hit RETURN even if there is already a disk in the >drive. I suspect NOT as DOS always thinks (and makes it look like) there are 2 floppy disks on a machine with only one real physical drive. I'm not sure if there is a way to detect if only one floppy or two are available (system config. byte / and interrupt (?? int 11h) spring to mind as possabilities. From memory there is a byte or two that tell how many drives are attached), although you would have to check these and then write you program to (itself) do the redirecting of all requests to drive B to drive A (ie: change the filename's that you open)... Hope this helps some... Trevor -- Trevor alias <****> tuo em tel esaelP ,lanimret siht edisni kcuts m`I pleH ( for all of you out there who can't read backwards..... Help i'm stuck inside this terminal, Please let me out )