🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.networks
Article #10

Re: NetBIOS Path Strings and Drive Letter Assignments

#10
From: Pauwl Lunow
Date: Mon, 22 Jan 1996 09:12
44 lines
1920 bytes
patrick@xiris.com (Patrick Whittle) wrote:
>Hi:
>
>I am developing an application that accesses a share on our server 
>using a NetBIOS path string (i.e. \\SHARE\NAME\<path>\file.ext). 
>I want to use this path string because the share name will not change,
>
>whereas the drive letter assignment a given user uses could at any 
>time change. However, there is still a situation where I could make 
>use of an API call that returns a drive letter being used.
>
>Do you know of an API call that returns network drive letter 
>assignments?  Is there a way to find out what drive is connected to 
>\\SHARE\NAME for example, using the API interface??
>
>Please respond to patrick@xiris.com
>
>Thanks ......... PW
>
[snip]


Patrick,

I'm doing much the same, but the software I'm writing has to run on 
MS-DOS clients too. How about the following:

1) I don't connect the share (\\<server>\<share>) to a drive letter
   at all. Just connect it! To simulate this easily, try:

   NET USE \\<server>\<share> <password>
   and then type
   NET USE
   to ensure you've got what you want.

   I make this connection by using MS-DOS Int21 5f03.

2) To get a list of the already connected devices, use Int21 5f02. This
   even can tell you which drive it is.

Hope this helps.

------
Pauwl
Technical Details
Message-ID: <4dvker$roe@wwwserv1.shell.nl>
Path: arc1-ca.pugleaf.net!wwwserv1.shell.nl!news
References: <4dp4l2$bcf@noc.tor.hookup.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!wwwserv1.shell.nl!news
From: Pauwl Lunow <P.B.LUNOW@snrper.simis.com>
Newsgroups: comp.os.ms-windows.programmer.networks,comp.os.ms-windows.programmer.misc,comp.lang.c,comp.lang.basic.visual.database
Subject: Re: NetBIOS Path Strings and Drive Letter Assignments
Date: 22 Jan 1996 09:12:59 GMT
Organization: SNR Pernis
Message-ID: <4dvker$roe@wwwserv1.shell.nl>
References: <4dp4l2$bcf@noc.tor.hookup.net>
NNTP-Posting-Host: gate.shell.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.22 (Windows; I; 16bit)