How do I install an exe as a windows service with start parameters?
sc.exe CREATE but can't find how to add start parameters to it.
I've also tried using nssm but can't find how to set start parameters there either.
Everything has to be done using the command prompt
I'm currently trying to use:
sc CREATE test binPath= "\"C:\a.exe\" --run -c \"C:\a.config"
But when trying to run it I get:
The service did not respond to the start or control request in a timely fashion.