Jump to content

Search the Community

Showing results for tags 'Possible bug in Ping function'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hi All, My question relates to the behavior of the Ping function under certain conditions. The code for testing this is: $PingResult = Ping("192.168.1.2") MsgBox (0,"Ping Test", "Ping Return Value = " & $PingResult & @CRLF & "@Error Value = " & @error) The IP address above is our local Exchange server. If all is good, it outputs return value of 1 (ms) and @Error of 0 (no error) If I unplug the network cable, it outputs return value of 0 (ms) and @Error of 2 (Host Unreachable) All OK so far! However, if I clean reboot the machine with the network cable disconnected, it gives a return value of 1 (ms) and @Error value of 0 It's driving me batty, as there is no way to distinguish this result from the result returned when all is well and the server response time is 1ms. According the help file on the Ping command I should be testing the return value, and if it is > 0 a successful Ping was obtained - but in the clean reboot situation it is returning a value of 1 when the computer does not even have a valid network connection! If I use the good-old Windows Ping command after the clean reboot, it correctly reports that it cannot send the ping request. Is this a bug in the ping command? Info for replicating the situation: You must use a local IP address, not something requiring DNS resolution like myserver.local. Machine: Windows 7 Pro SP1 32 bit fully patched AutoIT: V3.3.8.1 Thanks very much :-) Bill
×
×
  • Create New...