Saturday, September 12, 2020

Running a command as a service in Window!


To create service:
 sc.exe create YOUR_SERVICE_NAME binpath= <PATH_TO_YOUREXECUTABLE>
 
Example:  sc.exe create dockerDService binPath= "C:\Program Files\Docker\Docker\resources\dockerd.exe" start= auto



To delete service:
  sc.exe delete SERVICE_NAME 
 Example : sc.exe delete dockerDService 

Note: Use PowerShell or the command Terminal with Administrator mode

Read More...

Pages

 ©mytechtoday.com 2006-2010

 ©Mytechtoday

TOP