none
How can I run any app as a windows service? RRS feed

  • Question

  • I downloaded srvstart.exe and then on cmd I used this code line to create the service:

    SC CREATE MyAppName Displayname= "MyAppName" binpath= "srvstart.exe MyAppName-c D:MyAppName_service.ini" start= auto

    I get the successful message, but when I use the command "start MyAppName" the system cannot find the file.

    The service appears on the service list, but when I right clicked and START , a warning appears, saying:

    " WINDOWS COULD NNOT START THE MIAPPNAME SERVICE ON LOCAL COMPUTER.

    ERROR 2: THE SYSTEM CANNOT FIND THE FILE SPECIFIED"

    OS: WINDOWS SERVER 2008 R2 ENTERPRISE

    Tuesday, March 14, 2017 7:03 PM