Hi All,

I'm searching for a ping function programming in vbs, like :

ping( ipadress ) return true if ipadress can be pinged and false if cannot.

Thanks in advance !

stef

Re: Ping function by Torgeir

Torgeir
Thu Sep 18 07:25:22 CDT 2003

Stef wrote:

> I'm searching for a ping function programming in vbs, like :
>
> ping( ipadress ) return true if ipadress can be pinged and false if cannot.

Hi

The VBScript function IsConnectible in the link below will work on all OS
versions (it uses ping.exe to ping the host to see if it is online):

http://groups.google.com/groups?selm=3EB2AA54.EBB5ECBC%40hydro.com


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Re: Ping function by Stef

Stef
Thu Sep 18 10:21:04 CDT 2003

Wonderfull !!

many thanks
stef


"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> a écrit dans le
message de news:3F69A431.2F55F6C0@hydro.com...
> Stef wrote:
>
> > I'm searching for a ping function programming in vbs, like :
> >
> > ping( ipadress ) return true if ipadress can be pinged and false if
cannot.
>
> Hi
>
> The VBScript function IsConnectible in the link below will work on all OS
> versions (it uses ping.exe to ping the host to see if it is online):
>
> http://groups.google.com/groups?selm=3EB2AA54.EBB5ECBC%40hydro.com
>
>
> --
> torgeir
> Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of the 1328 page
> Scripting Guide: http://www.microsoft.com/technet/scriptcenter
>
>



Re: Ping function by barabba72

barabba72
Thu Sep 18 11:38:28 CDT 2003

I suggest you to use WMI (Win32_PingStatus). Search google for examples.

Bye
Bar

"Stef" <kioeev@hotmail.com> wrote in message news:<3f695d34$0$2786$626a54ce@news.free.fr>...
> Hi All,
>
> I'm searching for a ping function programming in vbs, like :
>
> ping( ipadress ) return true if ipadress can be pinged and false if cannot.
>
> Thanks in advance !
>
> stef

Re: Ping function by Michael

Michael
Thu Sep 18 20:24:23 CDT 2003

barabba wrote:
> I suggest you to use WMI (Win32_PingStatus). Search google for
> examples.

for WinXP or higher...

--
Michael Harris
Microsoft.MVP.Scripting

Windows 2000 Scripting Guide
Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp

System Administration Scripting Guide - samples scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942

WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en