Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have .exe file like this
191015.exe
and
191015.exe.config

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 https://dzone.com/articles/create-windows-services-in-c[^]
But I don't know where do I put my .exe file.
Posted
Updated 31-Oct-19 23:12pm

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900