Solved

Sending commands over a network

Posted on 2011-09-16
6
131 Views
Last Modified: 2012-05-12
Anyidea how i could send a command to a vb.net program from one computer to another, over a network?

Cheers

Matt
0
Comment
Question by:Matb396
6 Comments
 
LVL 25

Expert Comment

by:Luis Pérez
ID: 36548744
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
 

Author Comment

by:Matb396
ID: 36549346
which is the best way? all i want to do is send a string and then trigger an event.
0
 
LVL 25

Expert Comment

by:Luis Pérez
ID: 36549418
Then better use UDP.
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36549780
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
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 36570469
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question