473,503 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Communicating with a running process

Can someone tell me the cleanest way to achieve this -->

I have a running C# tray application. It has a tray menu to let the
user turn on and off things, like monitoring the CPU usage for
example.

Now lets say I have maybe a batch/jscript somewhere and it wants to do
some work and then send a command off to my tray app to tell it "turn
on monitoring", how would I do this? If I were using another EXE(not
a batch/jscript) outside of the tray app, I guess I could used named
pipes, to be clean, any other ideas when not using an EXE?
Thanks.

Apr 18 '07 #1
2 1441
Hi,
"kirk" <ki****@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
Now lets say I have maybe a batch/jscript somewhere and it wants to do
some work and then send a command off to my tray app to tell it "turn
on monitoring", how would I do this? If I were using another EXE(not
a batch/jscript) outside of the tray app, I guess I could used named
pipes, to be clean, any other ideas when not using an EXE?
You could include an EXE as the first step of the batch to send the command
:)
Apr 18 '07 #2
On Apr 18, 2:43 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
Hi,

"kirk" <kir...@gmail.comwrote in message

news:11**********************@y80g2000hsf.googlegr oups.com...
Now lets say I have maybe a batch/jscript somewhere and it wants to do
some work and then send a command off to my tray app to tell it "turn
on monitoring", how would I do this? If I were using another EXE(not
a batch/jscript) outside of the tray app, I guess I could used named
pipes, to be clean, any other ideas when not using an EXE?

You could include an EXE as the first step of the batch to send the command
:)
Thanks Ignacio. Thats what I had in mind, just not the "extra" EXE
part.

I think I have a clever idea; I will use named pipes, allow the same
EXE that starts up the tray app to run a second instance if called
again, but only to do named pipes communication with the first
instance, then force the second instance to terminate. I think this
will work?

Apr 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2268
by: Michael Sparks | last post by:
Hi, I'm posting a link to this since I hope it's of interest to people here :) I've written up the talk I gave at ACCU Python UK on the Kamaelia Framework, and it's been published as a BBC...
1
1603
by: valere | last post by:
I look for information for communicating between JavaScript and a native plugin. I noticed that LiveConnect is oriented to communicate as a "bridge" between Java and JS. But how to process with a...
3
23841
by: Stan | last post by:
Hallo, I have developed an application in MS Access 2000 (Polish version) under MS Windows XP prof (also Polish). Now I would like to run this code on MS Windows XP EN and MS Access XP EN. I have...
10
1330
by: Gabe Moothart | last post by:
Hi, I have 3 applications (2 services and a winforms app) that need to be able to send/recieve messages from each other. What is the best way to do this in .NET? I looked briefly at remoting, but...
2
1251
by: Wendy Elizabeth | last post by:
I am new to using .net. I am told that I need to setup a config file that will be accessed by a VB.net dll. This vb.net dll will be setup to run every 5 to 10 minutes by a timer that is coded into...
6
5977
by: Joe Jax | last post by:
I have an object that spawns a worker thread to process one of its methods. That method processes methods on a collection of other objects. During this processing, a user may request to cancel the...
2
2022
by: Chris | last post by:
Hi, I seem to be having some problems connecting to webservices. I'm running a C# client connected to a Java webservice using GLUE. The difference between the two request and response pairs...
1
3865
by: Tom Yee | last post by:
I would like to write a Windows Service that can communicate with any open browser windows that an interactive user may be running. The service itself does not need to have a UI. The company...
7
2269
by: Diego F. | last post by:
Hello. I have a windows service running that listens to a port and makes insert queries in a database. I need to make an interface, so my idea is creating a simple windows application that just...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.