🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6025

Find all drives (sigh) on a network

#6025
From: Frank Burleigh
Date: Wed, 01 May 1991 19:40
29 lines
1770 bytes
I've just written a short test program to find all the drives in
a system and report the characteristics of each drive.  The procedure
is simply to get the DOS list of lists (21h/52h) and walk along the
chain of disk param blocks (DPBs) until one has ffff:ffff in its
'next' field.  On stand-alone systems this has worked well.

Disaster struck when the test program was loosed on a workstation
attached to a Netware network.  The workstation has an A: and a B:
its own but nothing more; then come the server 'drives'.  My test
program stopped at B:.

The very useful book *Undocumented DOS* does say that there are no
current directory structures for network drives under Netware but
I don't believe it says there are no DPBs for those drives.

Two questions:

1. Will I really then have to try to setdisk() for each possible
drive up through LASTDRIVE (in the LoL)?

2. If so, what will I get back if I ask DOS for the DPB for each
disk I *can* change to (21h/32h)?

Any suggestions appreciated.

--
Frank Burleigh  burleigh@cica.cica.indiana.edu
USENET: ...rutgers!iuvax!cica!burleigh BITNET: BURLEIGH@IUBACS.BITNET
Department of Sociology, Indiana University, Bloomington, Indiana 47405
Technical Details
Message-ID: <1991May1.194041.17719@cica.indiana.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!news.cs.indiana.edu!cica!ogre!burleigh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!news.cs.indiana.edu!cica!ogre!burleigh
From: burleigh@ogre.cica.indiana.edu (Frank Burleigh)
Newsgroups: comp.os.msdos.programmer
Subject: Find all drives (sigh) on a network
Keywords: finding all drives on netware
Message-ID: <1991May1.194041.17719@cica.indiana.edu>
Date: 1 May 91 19:40:41 GMT
Sender: news@cica.indiana.edu (News System)
Distribution: na
Organization: Indiana University
Lines: 29
Nntp-Posting-Host: ogre.cica.indiana.edu