Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to communicate between 2 .Net apps?

Tags:

vb.net

ipc

If I control both applications, what is the best way to communicate between 2 exe's written in VB.Net. For example, I want to drop an XML file from one app, and pick it up with the other, but I do not want poll for the file. I've heard of named pipes, but I found it was complicated. What's the most effecient way to do this?

like image 672
ajl Avatar asked Dec 07 '22 03:12

ajl


2 Answers

The easiest way is probably to use Windows Communication Foundation. This article has example code written in VB.NET.

like image 151
Mark Byers Avatar answered Jan 09 '23 14:01

Mark Byers


You don't have to poll for the file. Use a FileSystemWatcher.

like image 34
newdayrising Avatar answered Jan 09 '23 14:01

newdayrising