WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Networks - Servers
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Find out what Drive Letter is Mapped to a Server using Microsoft Client

Keywords:  map  wwwnt34i.dll www9534i.dll 

Question:

I need to find out what drive letter is mapped to a server, using the Microsoft Client for a Novell server. I know the server name but need to find out what drive letter it is mapped to. I want something like the n4getmapped function, which is in the Netware extender. Any thoughts?

Answer:

Here's a way to do it, on NT, if you're using the Microsoft Client (rather than the Novell client):
Addextender("WWWNT34I.DLL")
lookingfor="\\servername\thisorthat"

netdrives=DiskScan(4)
netcount=ItemCount(xx,netdrives,@tab)
found=0

for xx = 1 to netcount
   thisdrive=ItemExtract(netdrives,@tab)
   lookmaybe=wntgetcon(thisdrive)
   Message(lookmaybe,lookingfor)   ; for debugging
   if strlower(lookmaybe) == strlower(lookingfor)
      found=1
      break
   endif
next

if found==1
    Message(thisdrive,lookmaybe)
else
    Message("Error: Not found",lookingfor)
endif

Here's a way to do it, on 95/98/ME, if you're using the Microsoft Client (rather than the Novell client):

Addextender("WWW9534I.DLL")
lookingfor="\\servername\thisorthat"

netdrives=DiskScan(4)
netcount=ItemCount(xx,netdrives,@tab)
found=0

for xx = 1 to netcount
   thisdrive=ItemExtract(netdrives,@tab)
   lookmaybe=w95getcon(thisdrive)
   Message(lookmaybe,lookingfor)   ; for debugging
   if strlower(lookmaybe) == strlower(lookingfor)
      found=1
      break
   endif
next

if found==1
    Message(thisdrive,lookmaybe)
else
    Message("Error: Not found",lookingfor)
endif

Article ID:   W13481
Filename:   Find out what Drive Letter is Mapped to Server.txt
File Created: 2001:03:02:14:45:26
Last Updated: 2001:03:02:14:45:26