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) endifHere'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: W13481Filename: Find out what Drive Letter is Mapped to Server.txt