Solved

Sending commands over a network

Posted on 2011-09-16
6
129 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
Comment Utility
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
Comment Utility
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
Comment Utility
Then better use UDP.
0
 
LVL 37

Expert Comment

by:TommySzalapski
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now