Hi,
I need to create a win service that lookup a file ina folder, ands
when received, read it then fir an event.
Then I need a desktop app that, when runs, bind to the event from the
win service, and when the event fires, read the eventarg data and do
some processing with.
Can anyone point me to the right direction to do this?
I will use filesystemwatch er to detect when file changes, but don't
know from there
I know how to do this with COM (the service is a com obj defining an
interface and the desktop app implements that interface and bind to
the running service), but not sure how to do it in NET
Any advice or suggestion is appreciated.
Thank you 4 1653
On Apr 28, 8:02 am, bz <bzam...@gmail. comwrote:
Hi,
I need to create a win service that lookup a file ina folder, ands
when received, read it then fir an event.
Then I need a desktop app that, when runs, bind to the event from the
win service, and when the event fires, read the eventarg data and do
some processing with.
Can anyone point me to the right direction to do this?
I will use filesystemwatch er to detect when file changes, but don't
know from there
I know how to do this with COM (the service is a com obj defining an
interface and the desktop app implements that interface and bind to
the running service), but not sure how to do it in NET
Any advice or suggestion is appreciated.
Thank you
One easy approach is to start off a new process(desktop app) with
appropriate arguments everytime the file changes.
Hi,
This doesn't works, because I don't want to desktop process to open
everytime.
The service must do what it is designed to do, and the desktop is just
a monitor, users can choose to start when they want to see the status
of service processing.
It might not be started for days, for example
Any other thought?
On Apr 28, 6:14*pm, parez <psaw...@gmail. comwrote:
On Apr 28, 8:02 am, bz <bzam...@gmail. comwrote:
Hi,
I need to create a win service that lookup a file ina folder, ands
when received, read it then fir an event.
Then I need a desktop app that, when runs, bind to the event from the
win service, and when the event fires, read the eventarg data and do
some processing with.
Can anyone point me to the right direction to do this?
I will use filesystemwatch er to detect when file changes, but don't
know from there
I know how to do this with COM (the service is a com obj defining an
interface and the desktop app implements that interface and bind to
the running service), but not sure how to do it in NET
Any advice or suggestion is appreciated.
Thank you
One easy approach is to start off a new process(desktop app) *with
appropriate arguments everytime the file changes.- Hide quoted text -
- Show quoted text -
On Apr 29, 10:25 am, bz <bzam...@gmail. comwrote:
Hi,
This doesn't works, because I don't want to desktop process to open
everytime.
The service must do what it is designed to do, and the desktop is just
a monitor, users can choose to start when they want to see the status
of service processing.
It might not be started for days, for example
Any other thought?
On Apr 28, 6:14 pm, parez <psaw...@gmail. comwrote:
On Apr 28, 8:02 am, bz <bzam...@gmail. comwrote:
Hi,
I need to create a win service that lookup a file ina folder, ands
when received, read it then fir an event.
Then I need a desktop app that, when runs, bind to the event from the
win service, and when the event fires, read the eventarg data and do
some processing with.
Can anyone point me to the right direction to do this?
I will use filesystemwatch er to detect when file changes, but don't
know from there
I know how to do this with COM (the service is a com obj defining an
interface and the desktop app implements that interface and bind to
the running service), but not sure how to do it in NET
Any advice or suggestion is appreciated.
Thank you
One easy approach is to start off a new process(desktop app) with
appropriate arguments everytime the file changes.- Hide quoted text -
- Show quoted text -
then you will have to use some better form of IPC .. named pipes,
remoting or MSMQ http://www.google.com/search?hl=en&r...et&btnG=Search
Thank you, I'll check them
On May 1, 5:28*pm, parez <psaw...@gmail. comwrote:
On Apr 29, 10:25 am, bz <bzam...@gmail. comwrote:
Hi,
This doesn't works, because I don't want to desktop process to open
everytime.
The service must do what it is designed to do, and the desktop is just
a monitor, users can choose to start when they want to see the status
of service processing.
It might not be started for days, for example
Any other thought?
On Apr 28, 6:14 pm, parez <psaw...@gmail. comwrote:
On Apr 28, 8:02 am, bz <bzam...@gmail. comwrote:
Hi,
I need to create a win service that lookup a file ina folder, ands
when received, read it then fir an event.
Then I need a desktop app that, when runs, bind to the event from the
win service, and when the event fires, read the eventarg data and do
some processing with.
Can anyone point me to the right direction to do this?
I will use filesystemwatch er to detect when file changes, but don't
know from there
I know how to do this with COM (the service is a com obj defining an
interface and the desktop app implements that interface and bind to
the running service), but not sure how to do it in NET
Any advice or suggestion is appreciated.
Thank you
One easy approach is to start off a new process(desktop app) *with
appropriate arguments everytime the file changes.- Hide quoted text -
- Show quoted text -
then you will have to use some better form of IPC .. named pipes,
remoting or MSMQ
http://www.google.com/search?hl=en&r...&q=Compare...- Hide quoted text -
- Show quoted text -
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chakkaradeep |
last post by:
Hi all,
i have written a Service,now i want to execute another application (for
eg;calc.exe) in the service....how will i perform it??...
i tried using this....
/**************Executing a Process code starts here**************/
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
|
by: esafran |
last post by:
Hi,
I've have encountered a very strange behaviour under C#.
My application is registering for:
Microsoft.Win32.SystemEvents.DisplaySettingsChanged &
Microsoft.Win32.SystemEvents.UserPreferenceChanged
When I run my application as a Console Application (not as a service),
my application receives the events when I change the screen resolution
or change from Dual View to Horizontal Span or to Single View.
|
by: Bijesh |
last post by:
Hi All,
I've developed a Windows Service that acts as a remoting server (.NET
Remoting). The client(user) is able to connect to the server and start a
program by giving the executable path of the program (in the server) along
with the working directory and the arguments (parameters).
This works fine if I try to start programs whose executable file is present
witin the local drives of the server. If the application is in a netwok
drive,...
|
by: Saran |
last post by:
I have a windows service which instantiates the Powerpoint Application using
PIA. When I am running this windows service am not able to open the Microsoft
powerpoint application. This problem happens in XP and win 2000, Where as the
same works fine in win 2003 server. Any suggestions to make this work in XP
and Win 2000.
|
by: Lubomir |
last post by:
Hi,
I read that interactive windows services will not be allowed to run under
Wista. I would like to ask what exactly is the interactive service. It is
supposed to be a service that communicates with desktop.
What about the following scenario: A service will create a thread. This
thread will create and run an UI Windows application that manages task bar
and so on on a desktop. This application will communicate with the service:
a/ by...
| |
by: Ahmed Perlom |
last post by:
Hi all,
I am trying to start a windows application that has a GUI from a Windows
service written in .NET 2.0. I have been searching on this for few days now
with no avail. When using the System.Diagnostic.Process object to start the
application (i.e Notepad), the new app runs and it is listed on the task
manger list, but the GUI doesn't show up in the desktop of the current user.
I am aware windows service (either LocalSystem,...
|
by: Don Curtis |
last post by:
If I use GDI+ within a service, what problems can I expect? Why can't GDI+
be used within a service?
http://msdn2.microsoft.com/en-us/library/system.drawing.aspx
"Classes within the System.Drawing namespace are not supported for use
within a Windows or ASP.NET service. Attempting to use these classes from
within one of these application types may produce unexpected problems, such
as diminished service performance and run-time...
|
by: sonu |
last post by:
Hello all,
I am trying to develop an application which will run as a windows
service.
The application should have Normal options available with service
like start, stop and pause but along with this I need an option to
show the windows application which
my service has started as a result of its invokation.
So I have written a service control by adding a new project of type
|
by: bz |
last post by:
Hi,
I need to create a win service that lookup a file ina folder, ands
when received, read it then fir an event.
Then I need a desktop app that, when runs, bind to the event from the
win service, and when the event fires, read the eventarg data and do
some processing with.
Can anyone point me to the right direction to do this?
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |