summaryrefslogblamecommitdiffstats
path: root/Server/install_windows_service.cmd
blob: a1b45d9a5663e488776a30c903768157cad8b612 (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= "@%CURRENTDIR%\Cuberite.exe,-1"
sc description %SERVICENAME% "@%CURRENTDIR%\Cuberite.exe,-2"