I have a bat file in which I have called a simple console application in c#. Whenever I run the bat file it displays the console and run. Can any one tell me how to run bat file as windows service so that to avoid this
I think this is what you're looking for:
Running a C# console application as a Windows service
It's not straightforward due to the fact that console app doesn't automatically qualify as a service, you will have to do some coding.
By the sound of your post though it seems as if you initially wanted to build a service in the first place, in that case, start from scratch and make a Windows service .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.