Is there any way to know wether a given DOS drive letter is mapped to a phyiscal drive or is a simulated floppy disk drive? That is, a drive that will show a "Insert disk for drive X:" message when trying to access it.
I think you can trap the "Insert disk" message. I know it's possible, because I did this once (remember it was a pain indeed), but what I'm not sure of is if my final version trapped that routine or used some other solution... Sorry I can't be of more help, but I do remember being able to do it (somehow) in the end...
As stupid as it may sound, there is no standard way to know if drive is physical or simulated.
I suggest that you populate #F24F (Prompt to insert disk) hook with your own routine. On the hook register A contains drive letter as ASCII. Please note that space for the hook is only 3 bytes.
If you just want to get rid of the prompt, you can do something like POKE &HF24F,&HF1
I made some code for this a while ago . It's quite long, but it works. I didn't use the hook.I can send you the code if you want konamiman.I made for a 'norton' clone. I didn't want the user to be able to select a virtual drive.
I have made some code which returns a list with what kind of devices are connected (HDD,FDD,CD-ROM and RAMDISK) which excludes virtual drivers. Somewhere in the memory there is a description of every diskrom and the number of physical driver connected. The vitrual drive is not listed in there. The diskroms (max 4) are in order of the drive names. So if there are two drives a and b and the controller has only one physical drive you will know that the second one is virtual. There is some more to it than I list here but that will be made clear by the code