Click here to Skip to main content
14,430,149 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have .exe file like this

I want to run this .exe as a service from windows server. Anyone can give me ide?

What I have tried:

I tried this way[^]
But I don't know where do I put my .exe file.
Updated 1-Nov-19 0:12am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

That article describes how to write a service. If you have an existing exe you want to run as a service then I'm sure if you google "run exe as service" you'll find some possible solutions. Note that not all exes can be run as services though, it depends what they do, eg do they show any any Windows or interact with the user? If so it won't work as a service.

If you have the code for the exe you could re-write the code so that it can be ran as a service using the article provided.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100