It's not working
code:
? @KIX
$i = 0
For Each $Device In WMIQuery("DeviceID","Win32_NetworkAdapter","@WKSTA")
$Status = WMIQuery("ConnectionState","Win32_NetWorkConnection")[$i]
;if $Status = "Connected"
$Description = WMIQuery("Description","Win32_NetworkAdapter","@WKSTA")[$i]
? $Description+Chr(9)+$Status ;+Chr(9)+$i
;EndIf
$i = 1+$i
Next
output: on a Win2k pro station (laptop)
4.20
Infrared Port Connected
Infrared Modem Port Disconnected
RAS Async Adapter Disconnected
WAN Miniport (L2TP) Disconnected
WAN Miniport (PPTP) Connected
Direct Parallel
WAN Miniport (IP)
Intel(R) PRO/100 VE Network Connection
Deterministic Network Enhancer Miniport
Deterministic Network Enhancer Miniport
output: on a Winnt 4.0 Station
4.20
Intel(R) PRO/100 VM Network Connection [Bus 2 Slot 8] Connected
This is weird. That the LAN interface on the laptop doesn't show any state and the one in the NT machine does.
[ 30. July 2003, 15:53: Message edited by: Raceeend ]
_________________________
regards,
Martijn