-
March 6th, 2008, 03:11 AM
#1
Run console application as windows service
is it possible i run console application as windows service or wrap an console application as windows service...
pls provide some sample...
-
March 6th, 2008, 06:41 AM
#2
Re: Run console application as windows service
Not as it is. You need specialized program which will run as service and host the console application. Look e.g. at FireDaemon.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post.
-
March 6th, 2008, 08:40 AM
#3
Re: Run console application as windows service
Can anyone show how can i use visual studio to create this?
-
March 6th, 2008, 10:56 AM
#4
Re: Run console application as windows service
Originally Posted by lsy
Can anyone show how can i use visual studio to create this?
Are you asking how to create a Windows Service in Visual Studio? If so, what Visual Studio version are you using?
-
March 6th, 2008, 01:18 PM
#5
Re: Run console application as windows service
-
March 6th, 2008, 10:53 PM
#6
Re: Run console application as windows service
Originally Posted by MadHatter
sorry, i still don't know what is that abt?? do there have any simple example?
-
March 6th, 2008, 11:06 PM
#7
Re: Run console application as windows service
That is a very very basic sample. I would suggest going back to that link and reading up on it. It's very easy to use. Just copy paste it in your project and mess around with it.
-
March 7th, 2008, 01:14 AM
#8
Re: Run console application as windows service
Originally Posted by mariocatch
That is a very very basic sample. I would suggest going back to that link and reading up on it. It's very easy to use. Just copy paste it in your project and mess around with it.
I can create using the default template in visual studio->windows service right??
do u have any website which start from there?? it seems more easy!
-
March 7th, 2008, 04:03 AM
#9
Re: Run console application as windows service
i followed this website to create the service...
http://avinashkt.blogspot.com/2007/0...s-service.html
After i install the service it show success... but when i try to start the service it show...
Error 1083: the executable program that this service is configured to run in does not implement the service
how can i resolve this?
-
May 10th, 2011, 08:15 PM
#10
Re: Run console application as windows service
IMO its a pretty useful too though. you don't always have the ability to alter a command line app (say, like some 3rd party utility) to be a windows service, and in instances like that, or where its not cost effective I think a service wrapper app like this is a great idea. similar btw to daemontools in linux which is like a windows services in windows but lets you run command line apps (which windows does not).
Last edited by MadHatter; May 10th, 2011 at 08:19 PM.
-
September 24th, 2013, 09:24 PM
#11
Re: Run console application as windows service
Originally Posted by lsy
is it possible i run console application as windows service or wrap an console application as windows service...
pls provide some sample...
I had the same problem and did exactly what you suggested, created a wrapper. That way I didn't have to modify my existing console applications. I posted it here: http://runasservice.com/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|