Advertisement
mdelatorre

Checks if the server is alive w/AutoIt

Dec 7th, 2024 (edited)
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.37 KB | Source Code | 0 0
  1. ; Developed by B.Vignesh Kumar <vigneshkumarb@bravetux.com>
  2. ;
  3. Func CheckAlive($host, $method = "ping", $port = False, $query = "HEAD / HTTP/1.0")
  4.     Local $ping
  5.     Switch $method
  6.         Case "ping"
  7.             $ping = Ping($host)
  8.             ;msgbox(0,"Ping", $host);
  9.             If $ping Then
  10.                 SetExtended($ping)
  11.                 Return True
  12.             Else
  13.                 Return False
  14.             EndIf
  15.     EndSwitch
  16. EndFunc   ;==>CheckAliv
Tags: AutoIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement