
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" ---------