How can I tell if I am connected to the network 
Author Message
 How can I tell if I am connected to the network

Is there any way from VB that I can tell if I have logged onto the network
successfully.

John



Fri, 13 Aug 1999 03:00:00 GMT  
 How can I tell if I am connected to the network

Quote:

> Is there any way from VB that I can tell if I have logged onto the network
> successfully.

Hmm. How about trying to access a file known to be on another machine?

    On Error Resume Next
    status = GetAttr("//remotemachine/sharename/youareon.txt")
    If Err.Number = 53 Then
        Err.Clear
    ' No such file
    ElseIf Err.Number = 0 Then
    ' You're OK
    Else
    ' Some other error to cope with
    End If

Naturally, if you're not normally allowed access to any remote machine
then this'll be as useful as (fill in your favourite phrase here).

What are your circumstances?

Quote:
> John

--

Vox (0|+44)1642 216 200  }*|*{  *o|o*  }o|o{ Zetland Buildings, Exchange Square
Fax (0|+44)1642 216 201    o      o      *   Middlesbrough, Cleveland.  TS1 1DE
--------- "Estimate how many people in the UK can make this estimate" ---------


Sat, 14 Aug 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to tell if I am connected with PPP

2. Question: How to tell if a laptop is connected to a Network

3. Dial Up Networking: Am I Connected?

4. How to tell if connected to network?

5. Am I connected to the network

6. Easy way to see if I am connected to network

7. how to tell when a network pc connects to your machine

8. Am I Connected To a Network?

9. connect to the first free network drive and connect to an

10. Unable to connect to PBA unless connected to network

11. Please tell me what I am doing wrong - DAO parameter Append Query :(

12. Connecting to network shares when network is detected only - help please

 

 
Powered by phpBB® Forum Software