well, there is pretty many ways... best would be with looping.

anyway, I use simply checks and predefined group letters.
if exist("R:\nul") ;r-already mapped.
if exist("S:\nul") ;s-already mapped.
use t: "\\storageserver2\Accounting"
else
use s: "\\storageserver2\Accounting"
else
use r: "\\storageserver2\Accounting"
endif

what more multiple things you have, that more you would need to go for checking against all driveletters...

{edit}
what comes to "*"... I've seen it not working...

[ 10. October 2002, 15:03: Message edited by: Lonkero ]
_________________________
!

download KiXnet