Hi,

Im trying to use Instr and Split command to capture the retured value of "Name" in the bellow "nbtstat -c" output.
I cannot make it work Anybody knows how to do???

Name Type Host Address Life [sec]
------------------------------------------------------------
CyrusA <20> UNIQUE 192.168.0.33 502

LOTR1 <03> UNIQUE 192.168.0.33 600

Simply i need $UserID = CyrusA and $Computer = LOTR1

note there is blank space between each string.

BR
/C


Edited by Cyrus (2003-11-27 02:02 PM)
_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"