ravi kumar

ravi kumar

  • NA
  • 76
  • 548

Creating a Windows Service using c#

Mar 13 2017 11:23 PM

Hi,

I Created a windows Service called "TestServer" using c# code on remote system , in the code I m giving below command. I have Given Startup Type as auto. But when remote system is restarted the service is not starting until I manually I start. Can any one help me suggesting what might be the issue here.

Command : sc create \\10.140.345.34 TestServer displayname= "TestServer" binpath= "\\10.140.159.78\c$\Services\Service.exe" start= auto


Answers (3)