This post.

Better example...

Code:

$nView=WshPipe('net view')
For Each $nCPU In $nView
If InStr($nCPU,"\\")
$nHost = Split(Split($nCPU," ")[0],"\\")[1]
$nHost ?
EndIf
Next



Edited by Chris S. (2004-03-29 08:33 PM)