Sending commands over a network

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


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
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:

Hope that helps.
Matb396Author Commented:
which is the best way? all i want to do is send a string and then trigger an event.
Luis PérezSoftware Architect in .NetCommented:
Then better use UDP.
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.
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.