service-install.bat 146 B

1234
  1. sc stop theserver
  2. sc delete theserver
  3. sc create theserver binPath=%~dp0\startvm.bat DisplayName="TheServer" type=own start=auto
  4. sc start theserver