philo Posted June 10, 2005 Posted June 10, 2005 $ip = InputBox("Ping Check", "Enter IP.", "", "") $Ping = Ping("$ip",250) If $ping Then; also possible: If @error = 0 Then ... Msgbox(0,"Status","Online, roundtrip was:" & $ping) Else Msgbox(0,"Status","An error occured with number: " & @error) EndIf I got this script to check ping. But it doesn't work. Need help Please Auto It Ruels
blindwig Posted June 10, 2005 Posted June 10, 2005 $ip = InputBox("Ping Check", "Enter IP.", "", "") $Ping = Ping("$ip",250) If $ping Then; also possible: If @error = 0 Then ... Msgbox(0,"Status","Online, roundtrip was:" & $ping) Else Msgbox(0,"Status","An error occured with number: " & @error) EndIfI got this script to check ping.But it doesn't work.Need help Please<{POST_SNAPBACK}>Should not have quotes around a variable, unless you have the options set to look for variable names inside strings, but that's just wasting time anyway.Try this:$Ping = Ping($ip, 250) My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions
philo Posted June 10, 2005 Author Posted June 10, 2005 Should not have quotes around a variable, unless you have the options set to look for variable names inside strings, but that's just wasting time anyway.Try this:$Ping = Ping($ip, 250)<{POST_SNAPBACK}>Thanks Man Auto It Ruels
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now