PC Review


Reply
Thread Tools Rate Thread

How to determine if a pc is on the same lan...

 
 
Terry Olsen
Guest
Posts: n/a
 
      15th Aug 2005
I'm backing up pc's across the lan (My Documents folders). A lot of
these pc's are laptops which may travel. They are still on the intranet,
but in a different building so the speed is tremendously slower. I
think the best way is to check that the default gateway is the same as
the machine doing the backup.

So how can I check the local/remote default gateway IP address? (aside
from calling IP config and parsing the return?)

Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Stuart
Guest
Posts: n/a
 
      16th Aug 2005
In vb6 i'd do this:

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery ("Select * from
Win32_NetworkAdapterConfiguration " & "where IPEnabled=TRUE")

For Each objAdapter In colNetAdapters
etc
Next

objAdapter contains the information you need.

Good luck
"Terry Olsen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm backing up pc's across the lan (My Documents folders). A lot of
> these pc's are laptops which may travel. They are still on the intranet,
> but in a different building so the speed is tremendously slower. I
> think the best way is to check that the default gateway is the same as
> the machine doing the backup.
>
> So how can I check the local/remote default gateway IP address? (aside
> from calling IP config and parsing the return?)
>
> Thanks.
>
> *** Sent via Developersdex http://www.developersdex.com ***



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to determine the value? Eric Microsoft Excel Misc 0 6th Jun 2010 06:17 AM
Determine best way to sum WLMPilot Microsoft Excel Misc 4 22nd Dec 2008 02:03 AM
How to determine the value? =?Utf-8?B?RXJpYw==?= Microsoft Excel Worksheet Functions 1 13th Feb 2007 04:17 AM
how to determine SID jg Windows XP Security 2 5th Mar 2006 01:21 AM
[Help]How do we determine? Wang.Hua Windows XP General 0 2nd Nov 2004 03:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:51 PM.