#How Map Log Drv to Phys
01-Mar-90 22:38:53
Sb: #24294-#How Map Log Drv to Phys
Fm: Jim Mischel 73717,1355
To: Robert Funk 71210,1541
Robert
Well, it's possible. After a couple hours' work, I now have a program that
will tell you what physical disk a logical drive resides. Even works with
ASSIGN and SUBST.
The basic idea is:
Capture BIOS disk interrupt (INT13)
For each logical drive (A-Z)
Issue a command that will cause a read from disk
(for this, I do a findfirst on *.*. Seems to work)
(this loop doesn't find the drives, it just issues the writes)
(the new INT13 routine handles this)
endfor
For each logical drive
output the physical device name
endfor
New INT13:
if the call is a read then
store the drive number (from DL) into the Drive table
jump to the BIOS disk handler.
If you'd like to see the assembly language code (about 150 lines), let me
know and I'll upload it here.
JIM