The Doszip Commander version 2.21 available (Announce)
> However I found a bug: in drive selection dialog DC shows also drive B: But
> I don't have any drive B: because in AUTOEXEC.BAT i have JOIN B:
> C:\FREEDOS\JOIN_B
The testing in DC does not invoke any "hard-error" functions to avoid wakeing up the sleeping disk, so it may fail in some cases.
I have no way of testing the "extra B drive", but I made some changes to the test function that may work:
include clib.inc
include disk.inc
PPROC _disk_type, disk:word
mov dx,disk
.if dl <= 1
mov ah,15h ; GET DISK TYPE
int 13h
.if CARRY? || !ah
xor ax,ax
.elseif disk == 1 ; remapped B drive ? *
mov bx,disk
inc bx
mov ax,440Eh
int 21h ; IOCTL - GET LOGICAL DRIVE MAP
.if al
xor ax,ax
.else
mov ax,_DISK_FLOPPY
.endif
.else
mov ax,_DISK_FLOPPY
.endif
.else
mov bx,disk
inc bx
mov ax,4409h ; IOCTL - CHECK IF BLOCK DEVICE REMOTE
int 21h
.if CARRY?
xor ax,ax
.elseif dh & 80h ; bit 15: drive is SUBSTituted
mov ax,_DISK_SUBST
.elseif dh & 10h ; bit 12: drive is remote
mov ax,_DISK_NETWORK
.else
mov ax,_DISK_LOCAL
.endif
.endif
ret
PEND _disk_type
END
File: dz/src/clib/dir/drvtype.asm
> And please, change to unixish paths like C:/FREEDOS/BIN into normal
> C:\FREEDOS\BIN
File: dz\src\clib\dir\drvtype.asm
Edit: *dl --> disk
Complete thread:
- The Doszip Commander version 2.20 available - nidud, 02.01.2012, 11:09
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- The Doszip Commander version 2.21 available - nidud, 21.01.2012, 18:27
- The Doszip Commander version 2.21 available - Laaca, 27.01.2012, 15:27
- The Doszip Commander version 2.21 available - nidud, 27.01.2012, 20:50
- The Doszip Commander version 2.21 available - nidud, 27.01.2012, 22:15
- The Doszip Commander version 2.22 available - nidud, 28.01.2012, 16:14
- The Doszip Commander version 2.22 available - Laaca, 28.01.2012, 21:31
- The Doszip Commander version 2.22 available - nidud, 29.01.2012, 11:40
- The Doszip Commander version 2.23 available - nidud, 01.02.2012, 10:40
- The Doszip Commander version 2.22 available - Laaca, 28.01.2012, 21:31
- The Doszip Commander version 2.21 available - Laaca, 27.01.2012, 15:27
- The Doszip Commander version 2.21 available - nidud, 21.01.2012, 18:27
Mix view