Saturday, September 12, 2020

Running a command as a service in Window!

Facebook


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

0 comments:

Post a Comment

I love to entertain onymous user Comment !

Pages

 ©mytechtoday.com 2006-2010

 ©Mytechtoday

TOP