Sign in to follow this  
Followers 0
gcue

Ping range of IPs

2 posts in this topic

#1 ·  Posted (edited)

i want to ping a range of ips where the user inputs the subnet.

then i want to ping IP range 190-240 of whatever subnet the user inputs

here's what i have so far:

GUICtrlCreateLabel("Start IP:", 45, 12)
$a_IP = GUICtrlCreateInput ("10", 95, 10, 30, 20)
GUICtrlCreateLabel(".", 130, 12)

$b_IP = GUICtrlCreateInput ("60", 140, 10, 30, 20)
GUICtrlCreateLabel(".", 175, 12)

$c_IP = GUICtrlCreateInput ("", 185, 10, 30, 20)
GUICtrlCreateLabel(".", 220, 12)


$aIP = GUICtrlRead($a_IP)
$bIP = GUICtrlRead($b_IP)
$cIP = GUICtrlRead($c_IP)

If $aIP = "" OR $bIP = "" OR $cIP = "" Then
    msgbox(0, "Find IP", 'Please enter a valid class C IP'&@CRLF & _
                                  'ie: 10.60.10')
    Return
EndIf

$subnet = $aIP & "." & $bIP & "." & $cIP
Edited by gcue

Share this post


Link to post
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
Sign in to follow this  
Followers 0