Gee whiz, I had a scriptlet all prepared and couldn't find this post ... as Richard H. would say "Holy peripatetic posts, Batman!" [love that line]

Might try this. I couldn't get the proper count using your findstr, doesn't matter:

code:
Break On 

$TEMP = "%TEMP%\IPCONFIG.TMP"

If Exist($TEMP)
Del $Temp
EndIf

SHELL '%COMSPEC% /C ipconfig /all | find /C "Ethernet" >"$TEMP"'

If Open(1,$TEMP) = 0
$Count = Val(ReadLine(1))
$= Close(1)
EndIf

?"Count=" $Count



[ 26. June 2003, 15:27: Message edited by: Shawn ]