1
0
cuberite-2a/Server/install_windows_service.cmd
Tiger Wang 1432afefdb Use string redirection in Windows service
+ Localisation support
2020-07-23 21:17:58 +01:00

8 lines
305 B
Batchfile

rem Alter this if you need to install multiple instances.
@echo off
set SERVICENAME="Cuberite"
set CURRENTDIR=%CD%
sc create %SERVICENAME% binPath= "%CURRENTDIR%\Cuberite.exe -d" start= auto DisplayName= "@%CURRENTDIR%\Cuberite.exe,-1"
sc description %SERVICENAME% "@%CURRENTDIR%\Cuberite.exe,-2"