Jump to content

ping function is not working on vista


Recommended Posts

i just tested the same script on my xp and my vista machine, and on the vista it just returns 0 as ping, where on the xp it returns the a ping between 150 to 200, what is the problem there ?

my function looks like:

$pingtomysite=ping("http://www.google.com", 4000)

Link to comment
Share on other sites

  • Developers

i just tested the same script on my xp and my vista machine, and on the vista it just returns 0 as ping, where on the xp it returns the a ping between 150 to 200, what is the problem there ?

my function looks like:

$pingtomysite=ping("http://www.google.com", 4000)

Doesn't work for me neither on WinXP but the below does as you specified an URL in stead of a valid HostName:

$pingtomysite = Ping("www.google.com", 4000)

Jos muttley

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • 6 months later...
  • Developers

Did anyone ever get this working? I've tried the WMI_Ping and not getting response time either...

Need to have some way of getting ping results.

Thanks,

Terry

What doesn't work?

As mentioned in the last post: It does work when using a proper hostname in stead of an URL.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...