but if you're in a LAN.. if you know the host name
for example you're COMP1 and you wanna send a msg to COMP2 then you just type.
net send COMP2 "message"
or if you want to send a msg to every host in the network.. to all the computers.
then use this:
net send * "message"