• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

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
0
Matb396
Asked:
Matb396
1 Solution
 
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
 
CodeCruiserCommented:
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now