; ===========================================================================================
;
;     Script Information
;    
;     Title:       LoopIPAddresses.kix
;     Author:      Wim Rotty
;     Description: Loop through all IP Addresses on a computer
;    
;
; ===========================================================================================
;Script Options

If Not @LOGONMODE
    Break On
Else
    Break Off
EndIf
Dim $RC
$RC = SetOption("Explicit", "On")
$RC = SetOption("NoMacrosInStrings", "On")
$RC = SetOption("NoVarsInStrings", "On")
If @SCRIPTEXE = "KIX32.EXE"
    $RC = SetOption("WrapAtEOL", "On")
EndIf

;Declare variables
Dim
 
$IPAddress, $i

;Initialize variables
$i = 0

;Code
$IPAddress = EnumIPInfo($i,0,1)
While Not @ERROR
    If Not $IPAddress = "0.0.0.0"
        ? $IPAddress
        ;Do stuff
    EndIf
    $i = $i + 1
   
$IPAddress = EnumIPInfo($i,0,1)
Loop

;Personal UDF Section

;UDF Section