?
Solved

Sending commands over a network

Posted on 2011-09-16
6
Medium Priority
?
137 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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 …
Simple Linear Regression

771 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