In order to start an application with a service when the computer starts I am have created a service using the following code:
sc create MyTestService binPath= c:\windows\system32\srvany
.exe type= own type= interact start= auto
This works perfectly to create the service with start type automatic and interact with desktop. However, I need to add a key called 'Parameters' in the registry created by the above command under:
And, then I want to add a value like:
After creating the service with the sc.exe I can manually create this 'Parameter' key, add value and it wroks fine but I do not want to do this manually. I want to do it through sc.exe.
Your quick response is greatly appreciated.
sc create MyTestService binPath= c:\windows\system32\srvany.exe type= own type= interact start= auto