WindowsService Clarification
-
Hi Guys. I have written a FileWatcher WindowsService which works fine. Now, I want to go a step further. I have written a Windows App that the guys are currently using to convert files with. I want to incorporate this into the WindowsService. What is the best way of doing this? Would it be adviseable for me to code the conversion stuff into the service in the FileSystemWatcher_Created Event? Is this even possible? I have searched and I can't find anything that would suggest that this is possible or how it can be done. Has anybody done anything like this before? If yes how? Thanks
Excellence is doing ordinary things extraordinarily well.
-
Hi Guys. I have written a FileWatcher WindowsService which works fine. Now, I want to go a step further. I have written a Windows App that the guys are currently using to convert files with. I want to incorporate this into the WindowsService. What is the best way of doing this? Would it be adviseable for me to code the conversion stuff into the service in the FileSystemWatcher_Created Event? Is this even possible? I have searched and I can't find anything that would suggest that this is possible or how it can be done. Has anybody done anything like this before? If yes how? Thanks
Excellence is doing ordinary things extraordinarily well.
I would write a second Service to do the conversion. On my last job I had several Services; of which one ran reports of different types and another handled emailing the results to whoever needed them.
-
I would write a second Service to do the conversion. On my last job I had several Services; of which one ran reports of different types and another handled emailing the results to whoever needed them.
-
And how would I start or call this from withing the current service? Sorry for asking, this is the first time I'm dabbling in WindowsServices.
Excellence is doing ordinary things extraordinarily well.
this article[^] should help you out with beginning services.
-
And how would I start or call this from withing the current service? Sorry for asking, this is the first time I'm dabbling in WindowsServices.
Excellence is doing ordinary things extraordinarily well.
-
this article[^] should help you out with beginning services.
-
And how would I start or call this from withing the current service? Sorry for asking, this is the first time I'm dabbling in WindowsServices.
Excellence is doing ordinary things extraordinarily well.
They would both be running all the time, they're Services. In my case, I had the report runner insert a record to a database table telling the emailer what to do. On the next cycle, the emailer reads the record, sends the required emails, and (on success) deletes the record (on failure, the record gets marked as failed).