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






                                                                                                             
rem Alter this if you need to install multiple instances.
@echo off
set SERVICENAME="MCServer"

set CURRENTDIR=%CD%
sc create %SERVICENAME% binPath= "%CURRENTDIR%\MCServer.exe /service" start= auto DisplayName= %SERVICENAME%
sc description %SERVICENAME% "Minecraft server instance"