sc delete XXService


sc create ServiceName binPath= “路径c:\...” start= auto