#185548 - 2008-02-21 12:19 PM
Re: @IPADDRESSx "looping"....
[Re: jmuirh]
|
Witto
MM club member
   
Registered: 2004-09-29
Posts: 1828
Loc: Belgium
|
; =========================================================================================== ; ; 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 |
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 302 anonymous users online.
|
|
|