summaryrefslogblamecommitdiffstats
path: root/Server/install_windows_service.cmd
blob: 84d69ee1a766cc08b760868f6b8177188ac7141a (plain) (tree)
1
2
3
4
5
6
7






                                                                                                       
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= %SERVICENAME%
sc description %SERVICENAME% "Minecraft server instance"