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

Microsoft Client
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 Determine if a User is Connected to a Server

Keywords:    mapped drives

Question:

Can you determine if you are connected ( and as who ) to a Novell server using the 32 bit Network extender?

Answer:

It's easier with the Novell Extender - but then you have to be running the Novell Client.

With the 32 bit Extender you can do it. The basic process is:

  1. Use DiskScan to get list of attached network drives.

  2. Using ItemCount and ItemExtract and a for look extract each drive on at a time.

  3. Use netGetCon to see what it is attached to. Use NetGetUser to see as who.

    For example:

    	AddExtender("wwwnt34I.dll") ;for NT
    	;or
    	AddExtender("www9534I.dll") ; for 95/98
    
    	netdrives=DiskScan(4)
    	Count=ItemCount(netdrives,@tab)
    
    	for xx=1 to count
    	thisdrive=ItemExtract(xx,netdrives,@tab)
    
    	map=wntGetCon(thisadrive) ; for NT
    	;OR
    	map=w95GetCon(thisdrive) ; for 95/98
    
    	Message(thisdrive,map)
    	next
    

Question (thread continued):

What if you are just connected to the Novell server with NO drives mapped? How can I figure out if the user is connected to a particular server but not necessarily have a drive mapped?

Answer:

Probably with the w95Resources of the wntResources2 function you can determine what you need to know.
Article ID:   W13529
Filename:   Determine if a User is Connected to a Server.txt
File Created: 2001:03:01:13:50:20
Last Updated: 2001:03:01:13:50:20