Sending commands over a network

Anyidea how i could send a command to a vb.net program from one computer to another, over a network?

Cheers

Matt
Matb396Asked:
Who is Participating?
 
CodeCruiserConnect With a Mentor Commented:
What do you actually want to achieve? You can probably use the PsExec command line utility to launch remote processes

http://technet.microsoft.com/en-gb/sysinternals/bb897553
0
 
Luis PérezSoftware Architect in .NetCommented:
Well, there are many methods available. Probably the best one is to use TCP or UPD communications. Here you got 2 full examples:

http://www.codeproject.com/KB/IP/UDP_Send_Receive.aspx

http://www.codeproject.com/KB/IP/VbNetSendReceiveTcp.aspx

Hope that helps.
0
 
Matb396Author Commented:
which is the best way? all i want to do is send a string and then trigger an event.
0
 
Luis PérezSoftware Architect in .NetCommented:
Then better use UDP.
0
 
TommySzalapskiCommented:
If you just want a quick and dirty solution, then have one program write to a file shared on the network and have the other program check that file every minute or so and delete it when done.

Roland's methods are better, but using a shared file as a channel works in a pinch.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.